Command Palette

Search for a command to run...

Назад к скиллам
скилл № 94219

kubernetes-architecture

Use when the user asks for a Kubernetes architecture overview, control plane components, what the kubelet does, kube-proxy modes, how a pod gets scheduled, or…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить kubernetes-architecture в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Kubernetes Architecture and Deployment Strategies

Purpose

Give an accurate mental model of the Kubernetes control plane and node components and how they cooperate through the API server, then map release requirements to a deployment strategy.

Agent Protocol

Trigger

"kubernetes architecture", "control plane", "kubelet", "kube-proxy modes", "etcd", "how a pod is scheduled", "deployment strategies", "rolling vs blue green vs canary".

Input Context

  • Managed (EKS/GKE/AKS) or self-managed; cluster version.
  • Release risk tolerance, traffic management available (ingress/Gateway API, mesh).

Output Artifact

Explanation and strategy recommendation with manifests. No file unless requested.

Response Format

Component(s): {...} — responsibility
Flow: {kubectl -> apiserver -> etcd -> controller -> scheduler -> kubelet -> CRI}
Strategy: {RollingUpdate|Recreate|blue/green|canary} (why)
Config: {YAML}

Completion Criteria

  • Every component described by what it watches and what it writes.
  • Strategy matches rollback-time and capacity constraints.

Components

Component Runs on Responsibility
kube-apiserver Control plane Only component that talks to etcd; authn → authz → admission → validation → persistence; serves watches
etcd Control plane (or external) Consistent key-value store (Raft) for all cluster state; odd member count (3/5)
kube-scheduler Control plane Watches unscheduled pods; filters and scores nodes; writes a Binding
kube-controller-manager Control plane Built-in controllers (Deployment, ReplicaSet, Node, Job, EndpointSlice, ServiceAccount, ...)
cloud-controller-manager Control plane Cloud-specific: load balancers, node lifecycle, routes
kubelet Every node Watches pods bound to its node; drives the container runtime via CRI; runs probes; reports status
Container runtime Every node containerd or CRI-O (+ runc/crun)
kube-proxy Every node (optional) Programs Service virtual IP routing: iptables, ipvs, or nftables mode (nftables GA in 1.33); can be replaced by Cilium eBPF
CNI plugin Every node Pod IPs and pod-to-pod networking (Calico, Cilium, AWS VPC CNI, ...)
CoreDNS Cluster add-on Service discovery DNS

All components communicate with the API server over HTTPS (watch/list/update); none talk to each other directly (the apiserver does call kubelets for logs, exec, port-forward). The kubelet ↔ runtime link is CRI over gRPC on a local socket.

From kubectl apply to Running Pod

sequenceDiagram
  participant U as kubectl
  participant A as kube-apiserver
  participant E as etcd
  participant DC as Deployment/ReplicaSet controllers
  participant S as scheduler
  participant K as kubelet
  participant R as containerd
  U->>A: apply Deployment
  A->>E: persist
  A-->>DC: watch event
  DC->>A: create ReplicaSet, then Pods
  A-->>S: watch: unscheduled Pod
  S->>A: Binding (pod -> node)
  A-->>K: watch: Pod on my node
  K->>R: CRI RunPodSandbox / CreateContainer / StartContainer
  K->>A: Pod status Running/Ready

Deployment Strategies

Strategy Mechanism Rollback Extra capacity Fit
RollingUpdate (default) Replace pods gradually (maxSurge, maxUnavailable) kubectl rollout undo (minutes) Up to maxSurge Backward-compatible changes
Recreate Kill all, then start new Redeploy None Can't run two versions at once (schema locks) — causes downtime
Blue/green Two full Deployments; switch Service selector or route Instant switch back 2× during release Need instant rollback, pre-release verification
Canary Small % of traffic to new version, increase on good metrics Shift traffic back Small Risky changes with good metrics; use Argo Rollouts/Flagger + ingress/Gateway API/mesh
# Rolling update that never drops below desired capacity
spec:
  replicas: 6
  minReadySeconds: 10
  progressDeadlineSeconds: 600
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 0

Readiness probes gate rolling updates — without them, Kubernetes considers pods ready as soon as containers start.

Blue/green by selector switch:

kubectl patch service checkout -p '{"spec":{"selector":{"app":"checkout","track":"green"}}}'

Plain Services cannot do weighted canaries; replica-ratio canaries (1 of 10 pods) are approximate. Use Gateway API HTTPRoute backendRefs weights or a mesh for precise percentages.

Managed vs Self-Managed

Managed services run apiserver/etcd/scheduler/controllers for you; you still own node upgrades (or use managed node groups/Autopilot-style modes), add-ons, and version upgrades within the provider's support window. Kubernetes minor versions get roughly 14 months of upstream patch support; plan at least one minor upgrade per ~4 months to stay current.

Anti-Patterns

  • Treating etcd as an app database or
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл kubernetes-architecture?

Use when the user asks for a Kubernetes architecture overview, control plane components, what the kubelet does, kube-proxy modes, how a pod gets scheduled, or rolling update vs blue/green vs canary. Traces kubectl apply to running containers and picks a rollout strategy. Not for etcd/apiserver internals (use kubernetes-internals) or rollout tooling (use devops-progressive-delivery).

Как установить скилл kubernetes-architecture?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл kubernetes-architecture запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить kubernetes-architecture с