Skip to content

lisy09/k8s-project-template

Repository files navigation


Contributor Covenant

k8s-project-template

Origin: https://github.com/lisy09/k8s-project-template

This project provides these features:

Documentation

The documentation of the project is located on Github Pages or in the docs/ directory.

To check the src markdown of docs, please check ./dev-docs/docs_src

Prerequisite

  • The environment for build needs to be linux/amd64 or macos/amd64
  • The environemnt for build needs docker engine installed
  • have docker-compose installed
  • The environemnt for build needs GNU make > 3.8 installed
  • The environemnt for build needs bash shell

[optional]

License

Check the LICENSE file for license rights and limitations.

Contributing

Please check CONTRIBUTING.md.

Directory (WIP)

  • build/: Building/running entrypoint for the solution
  • services/: parent dir for each components/services
  • local-k8s-cluster: module to create a local k8s cluster using kind, which is using Docker container "nodes".
  • cicd: ci/cd construction on k8s
  • gitops: source for gitops. Please notice that in production practice, please seperate this module to another repository, to handle the deployment permission control separately.
  • dev-docs: module to edit the docs
  • docs: generated static html docs from dev-docs
  • scripts/: scripts for building/running
  • Makefile: GNU Make Makefile as quick command entrypoint

Local Port Binding for Docker-Compose based Development

Please maintain the local port binding list here for docker/docker-compose based development, to avoid port conflict for multiple modules

  • 8080: dev-docs dev preview (with vscode remote container)
  • 8081: dev-docs dev preview (run docker container locally)
  • 53: dns proxy by dnsmasq
  • 5380: http manage page for dnsmasq
  • 2049: port for nfs server

How to Use

Build all necessary artifacts before running other commands

make all

Preview thd dev-docs locally

make docs-preview

Then open http://localhost:8081 in browser.

Build docs

make docs

docs/ will be updated.

About

This project provides a scaffold for k8s project with several engineering excellence features.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published