kubernetes-architect
Architect-level Kubernetes guidance — cluster and namespace topology, workload resource contracts, networking and ingress, autoscaling and capacity, rollout and disruption budgets, and the operational ownership a cluster demands. Use when running or evaluating Kubernetes.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- kubernetes-architect
- license
- MIT
- metadata
- { "crusor-path": "cloud-and-devops-architect/compute-architect/kubernetes-architect", "crusor-domain": "cloud-and-devops-architect", "crusor-origin": "original", "crusor-sources": "kubernetes.io/docs/concepts; kubernetes.io/docs/tasks/run-application; 12factor.net", "crusor-triggers": "kubernetes, k8s, helm, ingress, hpa, statefulset, cluster, pod disruption budget, namespace", "crusor-verified-on": "2026-10-30" }
- description
- Architect-level Kubernetes guidance — cluster and namespace topology, workload resource contracts, networking and ingress, autoscaling and capacity, rollout and disruption budgets, and the operational ownership a cluster demands. Use when running or evaluating Kubernetes.
- compatibility
- Kubernetes 1.28+; managed clusters preferred
03 SKILL.md 正文
Kubernetes Architect
Kubernetes is a distributed scheduler you now operate. If nobody owns the cluster, you have adopted a second product without a team.
When to use
- Many services, a platform team, and a need for uniform deployment/observability.
- Dynamic scaling and self-healing are genuine requirements.
- Already-standardised on containers and GitOps.
When NOT to use
- Fewer than ~5 services: ECS/Fargate, Cloud Run or a PaaS is cheaper to run.
- A single stateful monolith — a VM with a deploy script is honest.
Decision 1 — Cluster topology
| Shape | Use |
|---|---|
| one cluster, many namespaces | small/medium orgs; namespace per team |
| cluster per environment | strongest isolation, more overhead |
| cluster per tenant | compliance-driven cases |
- Namespaces are the unit of policy, quota and RBAC — one per team or bounded context, not per deployment.
- ResourceQuota and LimitRange per namespace; without them one team starves the cluster.
- Managed control planes by default (EKS/GKE/AKS); self-managed only with a platform team.
Decision 2 — Workload contracts
- Every container declares requests and limits; requests drive scheduling, so wrong requests mean random performance.
- Memory limit without a matching request → OOMKilled pods with no headroom.
- Readiness gates traffic; liveness restarts; startup probes for slow boots. A liveness probe tied to a dependency causes outage cascades.
- Non-root, read-only root FS, dropped capabilities, no privilege escalation.
- One process per container; config via ConfigMap/Secret, not baked images.
Decision 3 — Networking
- Ingress/Gateway for north-south; NetworkPolicy for east-west default-deny.
- Service discovery by DNS names, not IPs.
- MTLS via a service mesh only if you need it — it is a second control plane to operate.
- Avoid
hostNetworkandhostPathin application workloads.
Decision 4 — Scaling and capacity
- HPA on CPU/memory is a baseline; queue depth or RPS custom metrics match real load better.
- Cluster autoscaler/Karpenter needs correct requests or it provisions the wrong nodes.
- PodDisruptionBudget for anything with an SLO; without it, node drains take out all replicas.
- Topology spread across zones for multi-AZ resilience.
Decision 5 — Delivery and rollouts
- Deployments with
maxSurge/maxUnavailablechosen per criticality. - Canary or blue/green via the ingress/FLagger or an equivalent; not by editing replica counts by hand.
- GitOps (Argo/Flux) so the cluster state is the repository state; no
kubectl applyfrom laptops. - Rollback is a revert in git, and it is tested.
Decision 6 — Operate it
- Metrics, logs, traces shipped off-cluster; etcd backups verified.
- Upgrades: control plane and node versions on a schedule, not when forced.
- Admission policies (OPA/Kyverno) for the rules you keep re-reviewing.
- Cost: right-size requests, use spot for stateless work with disruption budgets.
Failure modes at scale
- No resource requests → noisy-neighbour latency under load.
- Liveness probe hitting the database → a DB blip restarts every pod.
kubectl applyfrom laptops, so the cluster drifts from git within a week.- One namespace for everything, RBAC effectively admin for all.
- Cluster upgraded for the first time when a version goes EOL.
Verification receipts
- Namespace inventory with quotas, RBAC roles and owners.
- Workload audit: requests/limits present, probes sane, security context set.
- Drain test: PDB keeps the service available during node maintenance.
- Rollout and rollback demonstrated from git.
- Cost per namespace and right-sizing report.
04 同仓库更多 Skills
interaction-patterns-architect
Architect-level interaction design in code — choosing established patterns over invented ones, feedback and latency behaviour, destructive-action safeguards, navigation and overlay conventions, and the state model behind every interactive surface. Use when a screen has to behave, not just look.
design-system-ops-architect
Architect-level operation of a design system in code — token pipelines and versioning, component API and variant policy, the catalogue as the contract, adoption metrics, and the governance that stops a system from forking into three. Use when a component library must survive several teams.
design-handoff-architect
Architect-level design handoff — what must be specified before implementation starts, tokens over raw values, responsive and content-limit contracts, state matrices, and the review loop that catches drift between design and code. Use when a design is about to become code.
content-microcopy-architect
Architect-level UI content — where strings live, voice and terminology consistency, error and empty-state copy as part of the interface, translation-ready authoring, and the content model a product needs before it multiplies screens. Use when the words in the interface matter as much as the pixels.
ui-ux-implementation-architect
Architect-level direction for turning a design into working UI — the handoff contract, component ownership versus screen-level layout, interaction and state conventions, design QA gates, and the review habits that keep an implementation faithful without frozen pixels. Use before any specific UI implementation skill.
test-strategy-architect
Architect-level test strategy — allocating assertions across unit, integration, contract and end-to-end layers, designing for testability through dependency boundaries, fixture and data strategy, and the flake and coverage policies that keep a suite trustworthy. Use when defining how a codebase is tested.