k8s-project-template
提供一个k8s项目模板,并集成一系列工程实践
开箱即用
以一定的项目结构来最小化项目初始配置,方便快速开始专注于开发。
云原生持续集成/持续部署
内置的云原生持续集成/持续部署.
K8s可观察性
内置的k8s可观测性组件并提供相应样例。
Source Code
Github: https://github.com/lisy09/k8s-project-template (opens new window)
本项目致力于提供k8s项目模板,并集成一系列工程实践。
# Features
This project provides these features:
- document templates with VuePress (opens new window)/dev-docs-template (opens new window)
- k8s cluster in docker for local or CI/CD machine with kind (opens new window)
- ci/cd, gitops with Argo (opens new window)
- chatops with Jenkins X (lighthouse) (opens new window)
- source code scan with sonarqube (opens new window)
- code coverage:
- python: coverage.py (opens new window)
- golang: go tool cover (opens new window)
- java/scala: jacoco (opens new window)/sbt-jacoco (opens new window)
- examples for various test x various language
- unit test
- e2e test
- integration test/deployment test
- load test
- k8s observability
- monitoring/metrics
- alert to email/slack
- logging
- PGL stack: Promtail + Loki + Grafana
- Promtail (opens new window): log collecting sidecar
- Loki (opens new window): log storage & query
- Grafana (opens new window): UI
- PGL stack: Promtail + Loki + Grafana
- [TODO] tracing
# 简单易用,开箱即用
# build all needed docker images
make all
# start a local k8s cluster
make local-cluster
# deploy k8s workload
make deploy
# check the monitoring dash board in http://monitoring.observe.local
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10