kubernetes
Use when the user asks about Kubernetes cluster admin, a deployment that keeps getting OOMKilled, CrashLoopBackOff, RBAC, Pod Security Admission…
от j4flmao★ 47 звёзд на GitHub
Установить kubernetes в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Kubernetes Cluster Administration
Purpose
Design, deploy, secure, and operate production-grade Kubernetes clusters covering architecture decisions, networking, storage, security, scheduling, upgrades, and disaster recovery.
Agent Protocol
Trigger
Exact user phrases: "Kubernetes", "K8s", "kubeadm", "cluster", "kubectl", "etcd", "kubelet", "kube-proxy", "CNI", "Container Network Interface", "CSI", "Container Storage Interface", "RBAC", "PodSecurity", "PodSecurityPolicy", "PSA", "taint", "toleration", "node affinity", "topology spread", "cluster upgrade", "kubeadm upgrade", "cluster backup", "etcd backup", "Velero", "node pool", "karpenter", "cluster autoscaler", "control plane", "kube-apiserver", "kube-scheduler", "kube-controller-manager", "coredns", "network policy".
Input Context
- Cluster deployment method (kubeadm, kops, managed service, Talos)
- Kubernetes version (current + target for upgrades)
- Network plugin (Calico, Cilium, Flannel, Weave)
- Number of nodes + instance types
- Workload types (stateless, stateful, batch, GPU)
- Compliance requirements (PCI, HIPAA, SOC2, FedRAMP)
- Existing tooling (Helm, ArgoCD, Prometheus, cert-manager)
Output Artifact
Cluster architecture document with control plane design, network topology, security model, upgrade plan, backup/DR strategy, and operational runbooks.
Response Format
YAML manifests, shell commands, and architecture decisions with no extraneous explanation. No preamble. No postamble. No filler.
Completion Criteria
- Cluster architecture defined (control plane HA, etcd topology, node types)
- CNI selected and configured (Calico, Cilium, or alternative)
- Security model defined (RBAC, Pod Security, Network Policies)
- Storage classes defined with CSI driver selection
- Upgrade strategy documented (version skew, node pool strategy)
- Backup/DR strategy defined (etcd backup, Velero, restore test)
- Monitoring and logging infrastructure specified
- Cluster autoscaling configured (Cluster Autoscaler or Karpenter)
Architecture / Decision Trees
Control Plane Deployment Options
| Method | Pros | Cons | Best For |
|---|---|---|---|
| kubeadm | Standard tooling, stackable control plane | Manual upgrades, no auto-scaling | Self-managed, on-prem, air-gapped |
| kops | AWS-native, state management via S3 | AWS-only, complex | AWS self-managed |
| Talos | Immutable OS, API-driven, low attack surface | Smaller community, newer project | Security-conscious, GitOps-native |
| EKS / AKS / GKE | Managed control plane, auto upgrades | Vendor lock-in, less control | Teams without K8s ops expertise |
| OpenShift | Enterprise features, built-in registry | Resource-heavy, licensing cost | Regulated enterprises |
etcd Topology Decision Tree
Number of control plane nodes?
1 node (dev/test) → Stacked etcd (simpler, less secure)
3 nodes (prod) → Stacked etcd or External etcd
5+ nodes (large prod) → External etcd (separate from control plane)
Workload criticality?
Dev/test → Stacked etcd on single or 3 nodes
Production → External etcd on dedicated nodes
Regulated/PCI → External etcd with encryption at rest + HSM-backed TLS
CNI Decision Tree
NetworkPolicy required?
YES → Calico (policy-rich, mature) or Cilium (eBPF-based, modern)
NO → Flannel (simplest overlay) or Weave (encrypted by default)
eBPF capabilities needed?
YES → Cilium (L7 policies, Hubble observability, service mesh)
NO → Calico (mature, wireguard encryption, BGP)
Performance critical?
YES → Cilium (eBPF, direct routing, XDP acceleration)
NO → Flannel (VXLAN overlay, simple)
Multi-cluster / multi-cloud?
YES → Cilium ClusterMesh or Submariner
NO → Calico (single-cluster is fine)
Node Type Strategy
General purpose (80% of workloads)
Instance: 4-8 vCPU, 16-32GB RAM
Type: On-demand or Spot (with PDB and anti-affinity)
Compute-optimized (batch, CI/CD)
Instance: 8-32 vCPU, high clock speed
Type: Spot for cost savings
Memory-optimized (databases, caching)
Instance: 8-64 vCPU, 64-256GB RAM
Type: On-demand (stateful)
GPU (ML training, inference)
Instance: NVIDIA A100, H100, L4
Type: On-demand + nodepool taint
Storage-optimized (Kafka, Ceph)
Instance: 8-32 vCPU, local NVMe SSDs
Type: On-demand with dedicated disk
Core Workflow
Step 1: Cluster Bootstrap (kubeadm)
# Control plane node 1
cat <<EOF | sudo tee /etc/kubernetes/kubeadm-config.yaml
apiVersion: kubeadm.k8s.io/v1beta3
kind: InitConfiguration
localAPIEndpoint:
advertiseAddress: "10.0.1.10"
bindPort: 6443
---
apiVersion: kubeadm.k8s.io/v1beta3
kind: ClusterConfiguration
clusterName: production
kubernetesVersion: v1.30.2
controlPlaneEndpoint: "10.0.0.100:6443"
apiServer:
extraArgs:
authorization-mode: "Node,RBAC"
audit-log-path: "/var/log/kubernetes/audit.log"
audit-log-maxage: "30"
audit-log-maxbackup: "10"
feature-gates: "P
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/ingress-controllers.md
- references/namespace-management.md
- references/pod-lifecycle.md
FAQ
Что делает скилл kubernetes?
Use when the user asks about Kubernetes cluster admin, a deployment that keeps getting OOMKilled, CrashLoopBackOff, RBAC, Pod Security Admission, NetworkPolicies, Ingress or Gateway API, StorageClasses, cluster upgrades, or etcd backup. Produces cluster fixes and configs. Not for control-plane internals (use kubernetes-internals) or workload patterns (use cloud-native-kubernetes-patterns).
Как установить скилл kubernetes?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл kubernetes запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…