Kubernetes Orchestration logo

Kubernetes Orchestration

Community
zhaoxuya520
kubernetes-orchestration

Kubernetes 工作负载编排,覆盖 Deployment / Service / Ingress / HPA / PDB。Helm Chart 管理、ArgoCD GitOps 部署、资源调优、高可用设计。

Overview

Publisherzhaoxuya520
RepositoryAI-Fullstack-Delivery-Workflow
Skill namekubernetes-orchestration
Stars
56
Forks
18
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by zhaoxuya520 on GitHub. Read the source before you install it.

Installation

Install the Kubernetes Orchestration AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zhaoxuya520/AI-Fullstack-Delivery-Workflow/tree/master/workflows/devops-engineer/skills/kubernetes-orchestration
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zhaoxuya520/AI-Fullstack-Delivery-Workflow.git /tmp/AI-Fullstack-Delivery-Workflow
mkdir -p .claude/skills
cp -r /tmp/AI-Fullstack-Delivery-Workflow/workflows/devops-engineer/skills/kubernetes-orchestration .claude/skills/kubernetes-orchestration
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Kubernetes Orchestration in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Kubernetes Orchestration on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Kubernetes Orchestration is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Kubernetes 编排(Kubernetes Orchestration)

参考来源:Kubernetes 官方文档、Helm 文档、ArgoCD 文档、CNCF 最佳实践、Production Kubernetes(Josh Rosso)。

适用场景

  • 应用部署到 Kubernetes 集群
  • Helm Chart 编写与管理
  • GitOps 工作流设计(ArgoCD / Flux)
  • 自动伸缩配置(HPA / VPA / KEDA)
  • 高可用与容灾(PDB / Pod Anti-Affinity)
  • 资源请求与限制调优
  • 服务网格集成(Istio / Linkerd)

核心原则

text
1. 声明式管理
   所有资源 YAML 在 Git 中
   kubectl apply,不 kubectl edit

2. GitOps 单一真相源
   Git 仓库 = 集群期望状态
   ArgoCD / Flux 自动同步

3. 资源限制必设
   requests = 保证资源
   limits = 上限(防止 noisy neighbor)

4. 高可用默认
   replicas >= 2
   PDB 保证滚动更新不中断
   Pod Anti-Affinity 分散节点

5. 健康检查三件套
   livenessProbe:进程存活
   readinessProbe:可接收流量
   startupProbe:慢启动保护

6. 标签规范
   app.kubernetes.io/name
   app.kubernetes.io/version
   app.kubernetes.io/component

7. Namespace 隔离
   按团队 / 环境 / 服务域划分
   RBAC 按 namespace 授权

工作流程

text
1. 设计资源清单
   - Deployment / StatefulSet / DaemonSet
   - Service(ClusterIP / NodePort / LoadBalancer)
   - Ingress / IngressRoute
   - ConfigMap / Secret
   - HPA / PDB

2. 编写 Helm Chart
   - Chart.yaml(元数据)
   - values.yaml(默认值)
   - templates/(资源模板)
   - 环境 override(values-prod.yaml)

3. 配置健康检查
   - livenessProbe(HTTP / TCP / exec)
   - readinessProbe(HTTP /health/ready)
   - startupProbe(慢启动应用)

4. 资源调优
   - 压测确定 requests
   - limits = 2x requests(初始)
   - VPA 推荐后调整

5. 自动伸缩
   - HPA:CPU / Memory / 自定义指标
   - KEDA:基于队列深度 / 请求数
   - 设置 min / max replicas

6. GitOps 部署
   - ArgoCD Application 定义
   - 自动同步 / 手动同步
   - 同步窗口(生产限制时段)

7. 可观测性
   - ServiceMonitor(Prometheus)
   - 日志标签(结构化)
   - 分布式追踪注入

8. 安全加固
   - NetworkPolicy 限制流量
   - PodSecurityStandard
   - ServiceAccount 最小权限

资源配置参考

资源类型关键配置注意事项
Deploymentreplicas / strategy / resources滚动更新 maxSurge / maxUnavailable
Servicetype / port / targetPortClusterIP 为默认
Ingresshost / path / TLS注解因 controller 而异
HPAmin / max / metrics冷却时间避免抖动
PDBminAvailable / maxUnavailable保证滚动更新可用性
NetworkPolicyingress / egress rules默认 deny all

Helm Chart 结构

text
charts/my-app/
├── Chart.yaml
├── values.yaml              ← 默认值
├── values-staging.yaml      ← staging 覆盖
├── values-production.yaml   ← production 覆盖
├── templates/
│   ├── _helpers.tpl         ← 模板函数
│   ├── deployment.yaml
│   ├── service.yaml
│   ├── ingress.yaml
│   ├── hpa.yaml
│   ├── pdb.yaml
│   ├── configmap.yaml
│   └── serviceaccount.yaml
└── README.md

质量自检

text
□ 所有 Pod 设置 resources.requests 和 limits
□ livenessProbe + readinessProbe 已配置
□ replicas >= 2(生产环境)
□ PDB 已配置(minAvailable >= 1)
□ Pod Anti-Affinity 分散节点
□ 滚动更新策略合理(maxSurge / maxUnavailable)
□ HPA 已配置(CPU + 自定义指标)
□ NetworkPolicy 限制不必要流量
□ Secrets 不硬编码在 YAML 中
□ 标签规范(app / version / component)
□ Namespace 隔离
□ Helm values 按环境分离
□ ArgoCD 同步策略已配置
□ RBAC 最小权限

常见坑

  1. 不设 resource limits——单 Pod 吃光节点资源
  2. replicas=1——单点故障,更新即中断
  3. 无 PDB——节点维护时全部驱逐
  4. readinessProbe 缺失——未就绪即接流量,502
  5. liveness = readiness 相同——依赖不可用时被杀
  6. HPA 指标单一——只看 CPU,内存 OOM
  7. 不用 Helm values 分环境——生产配置写死
  8. kubectl edit 修改——GitOps 漂移
  9. latest 标签——不可回滚
  10. 不设 terminationGracePeriodSeconds——强杀丢请求
  11. Secret 明文在 Git——安全事故
  12. Ingress 无 rate limit——DDoS 打穿

配套模板

  • templates/k8s-deployment-template.md — Deployment + Service + Ingress + HPA + PDB 完整模板

与其他 skill 的协作

text
上游:
  containerization → 镜像产物
  infrastructure-as-code → 集群基础设施(EKS / GKE)
  ci-cd-pipeline → 构建触发部署

下游:
  networking-gateway → Ingress / Service Mesh
  monitoring-alerting → ServiceMonitor / 告警规则
  release-strategy → 金丝雀 / 蓝绿部署
  secrets-config → K8s Secrets / External Secrets

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Kubernetes Orchestration AI skill do?

Kubernetes 工作负载编排,覆盖 Deployment / Service / Ingress / HPA / PDB。Helm Chart 管理、ArgoCD GitOps 部署、资源调优、高可用设计。

Why use Kubernetes Orchestration on TypingMind?

Because you install it once and use it with any model. Kubernetes Orchestration is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Kubernetes Orchestration in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zhaoxuya520/AI-Fullstack-Delivery-Workflow/tree/master/workflows/devops-engineer/skills/kubernetes-orchestration. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Kubernetes Orchestration?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Kubernetes Orchestration?

As many as you like. As long as a model supports skills, you can use Kubernetes Orchestration with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Kubernetes Orchestration AI skill free?

It is published on GitHub by zhaoxuya520. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇