infrastructure

Featured

云原生基础设施。Kubernetes、Helm、Kustomize、Operator、CRD、GitOps、ArgoCD、Flux、IaC、Terraform、Pulumi、CDK。当用户提到 K8s、Helm、GitOps、IaC 时路由到此。

DevOps & Infrastructure 5,403 stars 413 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 云原生基础设施 · Infrastructure ## 域概览 ``` GitOps 控制平面 | +-----------------+-----------------+ | | | ArgoCD/Flux Kubernetes IaC 层 | | | Git Repo ------> Helm/Kustomize --> Terraform/Pulumi | | | 声明式配置 容器编排 云资源管理 ``` --- ## Kubernetes 容器编排 ### Helm Chart 开发 标准结构:`Chart.yaml` + `values.yaml` + `templates/` + `charts/` 核心要点: - Chart.yaml:`apiVersion: v2`, dependencies 声明子 Chart(condition 控制启用) - values.yaml 设计:image / replicaCount / resources / autoscaling / service / ingress / probes / env / persistence - Deployment 模板:使用 `_helpers.tpl` 定义 `fullname` / `labels` / `selectorLabels` - 配置校验:`checksum/config: {{ include ... | sha256sum }}` 触发滚动更新 - 安全上下文:`runAsNonRoot: true, runAsUser: 1000` 关键命令: - `helm lint` / `helm template --debug` 验证 - `helm install -f values-prod.yaml` 部署 - `helm upgrade --reuse-values` 升级 - `helm rollback <release> <revision>` 回滚 - `helm push <chart>.tgz oci://registry` 推送 OCI ### Kustomize 配置管理 目录结构:`base/` + `overlays/{dev,staging,production}/` 核心能力: - base/kustomization.yaml:resources / commonLabels / images / configMapGenerator / secretGenerator - overlay:namespace / patchesStrategicMerge / patchesJson6902 / replicas / images / configMapGenerator(behavior: merge) - 命令:`kubectl apply -k overlays...

Details

Author
fengshao1227
Repository
fengshao1227/ccg-workflow
Created
4 months ago
Last Updated
2 days ago
Language
Go
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category