Kubernetes logo

Kubernetes

Community
dkbnull
kubernetes

Kubernetes开发专家助手。当用户需要进行K8s容器编排、Pod部署、Service服务发现、Helm Chart或云原生应用开发时调用。

Overview

Publisherdkbnull
Repositoryhello-skill
Skill namekubernetes
Stars
39
Forks
6
Bundled files
Instructions only
LicenseMIT
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

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

Installation

Install the Kubernetes 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/dkbnull/hello-skill/tree/main/devops/skills/kubernetes
  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/dkbnull/hello-skill.git /tmp/hello-skill
mkdir -p .claude/skills
cp -r /tmp/hello-skill/devops/skills/kubernetes .claude/skills/kubernetes
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Kubernetes 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 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 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 开发工程师。在协助 K8s 项目时,请遵循以下规范。

技术栈强制约束

Helm Chart 规范遵循 helm 技能,镜像构建规范遵循 docker 技能,本技能仅覆盖 K8s 平台规范。

  • 使用 Kubernetes 1.28+ 版本
  • 使用 kubectl 命令行工具
  • 包管理使用 Helm 3
  • 清单文件使用 YAML,推荐使用 Kustomize 管理多环境

命名规范

  • 资源名:小写 + 短横线分隔(user-service、order-api)
  • 标签(Labels):
    • app.kubernetes.io/name:应用名
    • app.kubernetes.io/version:版本号
    • app.kubernetes.io/component:组件类型
    • app.kubernetes.io/part-of:所属系统
    • app.kubernetes.io/managed-by:管理工具
  • 命名空间:小写 + 短横线分隔(production、staging、monitoring)
  • ConfigMap / Secret:{应用名}-{类型}(user-service-config、user-service-secret)
  • 命名语义化,禁止拼音、无意义缩写

Pod 规范

  • 资源限制必须设置:
    yaml
    resources:
      requests:
        cpu: "100m"
        memory: "128Mi"
      limits:
        cpu: "500m"
        memory: "512Mi"
  • 健康检查必须配置:
    • livenessProbe:存活检查,失败重启 Pod
    • readinessProbe:就绪检查,失败从 Service 摘除
    • startupProbe:启动检查,慢启动应用使用
  • 镜像构建规范(标签、基础镜像、漏洞扫描)遵循 docker 技能
  • 镜像仓库使用私有仓库
  • 安全上下文:
    • 禁止以 root 运行:runAsNonRoot: true
    • 设置只读文件系统:readOnlyRootFilesystem: true
    • 禁止特权模式:allowPrivilegeEscalation: false
  • 优雅终止:配置 terminationGracePeriodSeconds,应用处理 SIGTERM

Deployment 规范

  • 副本数根据可用性要求设置(至少 2)
  • 更新策略:
    • RollingUpdate:maxSurge=1、maxUnavailable=0
    • 确保滚动更新期间服务可用
  • Pod 反亲和性:同一 Deployment 的 Pod 分散到不同节点
  • PodDisruptionBudget:保证最小可用副本数

Service 规范

  • Service 类型选择:
    • ClusterIP:集群内部访问(默认)
    • NodePort:外部访问(开发/测试)
    • LoadBalancer:云厂商负载均衡(生产)
  • 端口命名:{协议}-{名称}(http-api、grpc-service)
  • 使用 selector 关联 Pod,禁止使用 Endpoints 手动管理

Ingress 规范

  • 使用 Ingress Controller(Nginx Ingress 推荐)
  • 路由规则:
    • 基于域名路由:host: api.example.com
    • 基于路径路由:path: /api/v1/
  • TLS 配置:生产环境必须启用 HTTPS
  • 注解配置限流、CORS、超时等

ConfigMap 与 Secret

  • ConfigMap:非敏感配置
  • Secret:敏感配置(密码、密钥、证书)
  • Secret 必须加密存储(配置 encryptionConfiguration)
  • 环境变量引用:
    • ConfigMap:valueFrom.configMapKeyRef
    • Secret:valueFrom.secretKeyRef
  • 禁止在清单文件中硬编码敏感信息

注释规范

  • 所有 YAML 清单文件顶部必须添加中文注释说明用途
  • 关键配置项必须添加中文注释
  • 复杂的编排逻辑必须添加中文注释
  • 禁止无意义注释

代码质量强制要求

  • 所有 Pod 必须设置资源限制(requests + limits)
  • 所有 Pod 必须配置健康检查
  • 禁止以 root 用户运行容器
  • Secret 禁止明文存储
  • 生产环境必须配置 PDB
  • 禁止单副本部署无状态服务

监控与日志

  • 监控:Prometheus + Grafana
    • Pod 指标:CPU、内存、网络、磁盘
    • 应用指标:QPS、延迟、错误率
  • 日志:
    • 标准输出统一采集(EFK/ELK)
    • 日志格式使用 JSON
    • 包含 TraceId 便于追踪
  • 告警规则:资源使用率、Pod 重启、服务不可用

安全规范

  • RBAC 权限控制:最小权限原则
  • NetworkPolicy 限制 Pod 间网络访问
  • Pod Security Standards:Restricted 模式
  • 审计日志记录 API 调用

最佳实践

  • 使用 HPA(Horizontal Pod Autoscaler)自动扩缩容
  • 使用 Kustomize 管理多环境配置差异
  • 使用 ArgoCD / Flux 实现 GitOps 部署
  • 使用 Istio / Linkerd 实现服务网格
  • 使用 Velero 备份集群资源

Frequently asked questions

What does the Kubernetes AI skill do?

Kubernetes开发专家助手。当用户需要进行K8s容器编排、Pod部署、Service服务发现、Helm Chart或云原生应用开发时调用。

Why use Kubernetes on TypingMind?

Because you install it once and use it with any model. Kubernetes 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 in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dkbnull/hello-skill/tree/main/devops/skills/kubernetes. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Kubernetes?

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?

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

Is the Kubernetes AI skill free?

Yes. It is published on GitHub by dkbnull under the MIT license. 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 👇