[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77Y3TGR3JEX26WAJGYNFNNQ":3,"skill-same:01M77Y3TGR3JEX26WAJGYNFNNQ":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":13,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M77Y3TGR3JEX26WAJGYNFNNQ","kubernetes-standards",null,"Use when authoring or editing Kubernetes manifests, Helm charts, kustomization.yaml, or any *.yaml with a `kind:` (Deployment\u002FStatefulSet\u002FJob\u002FService\u002FIngress\u002FNetworkPolicy) in a touchstone repo — covers workloads, resources, probes, securityContext, networking, scaling, rollouts, and policy\u002Flint. Triggers on k8s manifests, Helm\u002FKustomize, HPA\u002FPDB, and admission policy. Boundary: image build is docker-standards, IaC\u002FGitOps\u002FSRE is devops-standards, telemetry is observability-standards, supply-chain\u002Fsigning is security-standards.","hwanngo\u002Ftouchstone","hwanngo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F40811995?v=4","01M77Y071N2D3A6BMB2GVS4F36","01M77Y072AAS1FW736DJ42EP5S",0,"MIT","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Fskills\u002Fkubernetes-standards\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: kubernetes-standards\ndescription: \"Use when authoring or editing Kubernetes manifests, Helm charts, kustomization.yaml, or any *.yaml with a `kind:` (Deployment\u002FStatefulSet\u002FJob\u002FService\u002FIngress\u002FNetworkPolicy) in a touchstone repo — covers workloads, resources, probes, securityContext, networking, scaling, rollouts, and policy\u002Flint. Triggers on k8s manifests, Helm\u002FKustomize, HPA\u002FPDB, and admission policy. Boundary: image build is docker-standards, IaC\u002FGitOps\u002FSRE is devops-standards, telemetry is observability-standards, supply-chain\u002Fsigning is security-standards.\"\nlicense: MIT\nmetadata:\n  version: 0.2.0\n  author: touchstone\n---\n\n# Kubernetes (platform)\n\nFull standard: **`standards\u002Fplatform\u002Fkubernetes.md`** in the touchstone repo (the canonical k8s depth;\n`standards\u002Fplatform\u002Fdevops.md` summarises and defers here). This skill inlines the load-bearing\nrules so it stays useful when installed standalone in `~\u002F.claude\u002Fskills\u002F`:\n\n## Always\n- **Requests always set; NO CPU limit on latency-sensitive svcs; memory limit = request** — CPU is compressible (a limit throttles you below idle for no gain), memory is not (over-request → OOMKill).\n- **Liveness probe is dependency-free** — never ping a DB\u002Fdownstream, or one dep outage restarts every pod. Readiness gates traffic and *does* check deps; startup probe for slow boots (not a giant `initialDelaySeconds`).\n- **Harden every pod**: `runAsNonRoot`, `readOnlyRootFilesystem`, `allowPrivilegeEscalation: false`, `capabilities.drop: [ALL]`, `seccompProfile: RuntimeDefault` — and label the namespace **PSA `enforce: restricted`** (PodSecurityPolicy is gone since 1.25).\n- **Images digest-pinned** (`@sha256:…`, never `:latest`), signatures **verified at admission** (Kyverno `verifyImages`).\n- **No plaintext Secrets in git** — base64 is encoding, not encryption. Use ESO \u002F SOPS+age \u002F Sealed Secrets \u002F Vault + rotation; ConfigMaps for non-secret config (roll pods on change).\n\n## Don't get burned\n- **Default-deny NetworkPolicy per namespace** — pods are flat-reachable by default; deny ingress+egress, then **always allow DNS egress** or everything breaks.\n- **PDB sized against rollout surge**: `replicas − maxUnavailable ≥ minAvailable`; spread replicas across zones (`topologySpreadConstraints`). Never run HPA and VPA on the same metric — they oscillate (VPA recommender-only).\n- **HPA on SLO\u002Fcustom metrics, not raw CPU**; rollouts are `RollingUpdate` surge-bounded + readiness-gated; DB migrations N-1 \u002F expand-contract (two versions run at once).\n- **StatefulSet only for real stable-identity\u002Fordered\u002Fper-PVC workloads** — Deployment is the default; prefer a managed datastore over self-hosting.\n- Pick **Helm** (third-party \u002F `helm rollback`) xor **Kustomize** (your own app, base+overlays) — don't blur them.\n\n## Done\nCorrect workload kind · requests set (no CPU limit, mem limit = request) · liveness dependency-free, readiness\u002Fstartup right · `securityContext` hardened + namespace PSA `restricted` · images digest-pinned + verified at admission · no plaintext Secrets (ESO\u002FSOPS\u002FVault) · default-deny NetworkPolicy (+DNS) · HPA on SLO metrics + PDB + topology spread · rollouts surge-bounded\u002Freadiness-gated, migrations N-1 · CI gate **kubeconform -strict + kube-linter + server dry-run** + Kyverno\u002FGatekeeper Enforce · namespace-per-tenant RBAC\u002Fquota · metrics scraped, JSON logs, SLO burn-rate alerts. See `standards\u002Fplatform\u002Fkubernetes.md`.\n","# Kubernetes (platform)\n\nFull standard: **`standards\u002Fplatform\u002Fkubernetes.md`** in the touchstone repo (the canonical k8s depth;\n`standards\u002Fplatform\u002Fdevops.md` summarises and defers here). This skill inlines the load-bearing\nrules so it stays useful when installed standalone in `~\u002F.claude\u002Fskills\u002F`:\n\n## Always\n- **Requests always set; NO CPU limit on latency-sensitive svcs; memory limit = request** — CPU is compressible (a limit throttles you below idle for no gain), memory is not (over-request → OOMKill).\n- **Liveness probe is dependency-free** — never ping a DB\u002Fdownstream, or one dep outage restarts every pod. Readiness gates traffic and *does* check deps; startup probe for slow boots (not a giant `initialDelaySeconds`).\n- **Harden every pod**: `runAsNonRoot`, `readOnlyRootFilesystem`, `allowPrivilegeEscalation: false`, `capabilities.drop: [ALL]`, `seccompProfile: RuntimeDefault` — and label the namespace **PSA `enforce: restricted`** (PodSecurityPolicy is gone since 1.25).\n- **Images digest-pinned** (`@sha256:…`, never `:latest`), signatures **verified at admission** (Kyverno `verifyImages`).\n- **No plaintext Secrets in git** — base64 is encoding, not encryption. Use ESO \u002F SOPS+age \u002F Sealed Secrets \u002F Vault + rotation; ConfigMaps for non-secret config (roll pods on change).\n\n## Don't get burned\n- **Default-deny NetworkPolicy per namespace** — pods are flat-reachable by default; deny ingress+egress, then **always allow DNS egress** or everything breaks.\n- **PDB sized against rollout surge**: `replicas − maxUnavailable ≥ minAvailable`; spread replicas across zones (`topologySpreadConstraints`). Never run HPA and VPA on the same metric — they oscillate (VPA recommender-only).\n- **HPA on SLO\u002Fcustom metrics, not raw CPU**; rollouts are `RollingUpdate` surge-bounded + readiness-gated; DB migrations N-1 \u002F expand-contract (two versions run at once).\n- **StatefulSet only for real stable-identity\u002Fordered\u002Fper-PVC workloads** — Deployment is the default; prefer a managed datastore over self-hosting.\n- Pick **Helm** (third-party \u002F `helm rollback`) xor **Kustomize** (your own app, base+overlays) — don't blur them.\n\n## Done\nCorrect workload kind · requests set (no CPU limit, mem limit = request) · liveness dependency-free, readiness\u002Fstartup right · `securityContext` hardened + namespace PSA `restricted` · images digest-pinned + verified at admission · no plaintext Secrets (ESO\u002FSOPS\u002FVault) · default-deny NetworkPolicy (+DNS) · HPA on SLO metrics + PDB + topology spread · rollouts surge-bounded\u002Freadiness-gated, migrations N-1 · CI gate **kubeconform -strict + kube-linter + server dry-run** + Kyverno\u002FGatekeeper Enforce · namespace-per-tenant RBAC\u002Fquota · metrics scraped, JSON logs, SLO burn-rate alerts. See `standards\u002Fplatform\u002Fkubernetes.md`.\n",{"name":5,"license":14,"metadata":23,"description":7},{"author":24,"version":25},"touchstone","0.2.0","main","d733e177953000560b4cee8f6c01c63aa7a498f0","skills\u002Fkubernetes-standards","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone","https:\u002F\u002Fgithub.com\u002Fhwanngo","\"There is always one more bug to fix.\"","2026-08-26 01:16:05",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add hwanngo\u002Ftouchstone --skill kubernetes-standards",{"tool":39,"command":40},"bunx","bunx skills add hwanngo\u002Ftouchstone --skill kubernetes-standards",{"tool":42,"command":43},"pnpm","pnpm dlx skills add hwanngo\u002Ftouchstone --skill kubernetes-standards","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Fskills\u002Fkubernetes-standards\u002FSKILL.md",true,[],[48,55,62,67,72,77],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":18},"01M77YA15EH4A1SDYPZSPZSE8V","ok-standards","Use when writing shell, per standards\u002Flanguages\u002Fshell.md.","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fstandards-known-good\u002Fskills\u002Fok-standards\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M77Y9YK8K580BZ6GNZP6N0PW","demo-standards","Use when editing demo code in a touchstone fixture repo, a deliberately ordinary description that is long enough to clear the forty character minimum.","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-url-ignored\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[],{"skillNo":63,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M77Y9VKRQH1CD8B7Y1BZX0PX","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-stray-xml\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[],{"skillNo":68,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M77Y9SZBHZJES7014P5W1A33","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-pointer-sentence-period\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[],{"skillNo":73,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M77Y9Q6PRTYDTPR8EK0TMJC6","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-pointer-relative-dead\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[],{"skillNo":78,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M77Y9NH1Z2528QQ6VQ45G6RV","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-pointer-outside-repo\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[]]