/tsh-platform-engineering:deploying-to-kubernetesfrom TSH Platform Engineering
Configures Kubernetes workloads to production standards: workload selection, resource requests/limits, probes, PodDisruptionBudgets, anti-affinity, HPA/KEDA/VPA scaling, Helm/Kustomize structure, ingress, and non-root security contexts. Use when deploying apps, writing manifests, or adding resilience.
Ships in TSH Platform Engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The defaults Kubernetes gives you are not production defaults. A manifest with no requests, no probes and no disruption budget will deploy successfully and then behave badly under exactly the conditions you deployed it for.
Read ${CLAUDE_PLUGIN_ROOT}/shared/discovering-infrastructure-context.md first —
sections 2, 3 and 5 identify whether the project uses raw manifests, Helm or
Kustomize, the API versions its cluster serves, and whether a GitOps controller owns
the cluster. Match the project's existing packaging. Adding a Helm chart to a
Kustomize repository is a finding, not a delivery.
| Severity | Rule |
|---|---|
| MUST | Set resource requests on every container. Without them the scheduler places blind and the pod lands in BestEffort QoS, first to be evicted. |
| MUST | Configure a readiness probe on anything that serves traffic. Without one, traffic reaches a pod that is not ready and the deploy looks successful while requests fail. |
| MUST | Pin image tags to a version or digest. latest makes the running version unknowable and a rollback meaningless. |
| MUST | Run as non-root with allowPrivilegeEscalation: false and dropped capabilities in production. |
| MUST | Give production workloads at least two replicas and a PodDisruptionBudget, so a node drain cannot take the service down. |
| MUST | Validate before delivering — kubectl apply --dry-run=server, and helm template for charts. Client-side dry-run does not catch admission failures. |
| NEVER | Put secret values in a ConfigMap, a manifest, or a committed values file. |
| NEVER | kubectl apply directly against a cluster a GitOps controller owns — the controller reverts it and the drift hides the real change. |
| Reference | Load when | Covers |
|---|---|---|
| Workload configuration | Writing or reviewing any workload manifest | Resources and QoS classes, all three probe types, PDB, anti-affinity, security context |
| Scaling | The workload needs to scale, or scales badly | HPA with behavior tuning, KEDA for event-driven, VPA, and which to use |
| Helm and Kustomize | Packaging a workload, or changing a chart or overlay | Chart layout, values conventions, environment overrides, overlay structure |
| Ingress and networking | Exposing a service outside the cluster | Controller choice, ingress with TLS, network policies |
Read workload-configuration.md before writing any manifest — requests, probes and QoS are where production behavior is decided.
| Type | Use for |
|---|---|
| Deployment | Stateless apps, web servers, APIs |
| StatefulSet | Databases and anything needing stable identity or ordered startup |
| DaemonSet | Node-level agents — log shippers, metrics agents |
| Job | One-off tasks and batch processing |
| CronJob | Scheduled recurring tasks |
Reach for a StatefulSet only when stable network identity or per-replica storage is genuinely required. A Deployment with a persistent volume covers more cases than people expect, and is far simpler to operate.
kubectl apply --dry-run=server, helm template, and kubeconform
where the project has it (kubeval is archived).app, version, environment| Don't | Do |
|---|---|
latest image tag | Pin a version or digest |
| No resource requests | Always set requests |
| Single replica in production | Two or more, with a PDB |
| Run as root | Non-root, minimal capabilities |
| No readiness probe | Probe, so traffic arrives only when ready |
kubectl apply into a GitOps cluster | Commit; let the controller reconcile |
| Values hardcoded in manifests | Helm values or Kustomize overlays |
| Liveness probe that checks the database | Liveness checks the process; readiness checks dependencies |
| CPU limits set reflexively | Set them knowingly — throttling looks like a latency bug |
What SKILL.md sets; muted values are Claude Code's defaults
Trigger on: writing or changing a Deployment, StatefulSet, DaemonSet, Job or CronJob, creating or modifying a Helm chart or Kustomize overlay, setting resource requests and limits, configuring probes, adding autoscaling with HPA or KEDA, PodDisruptionBudget or anti-affinity for high availability, ingress and TLS, pod security context hardening, CrashLoopBackOff or OOMKilled or eviction troubleshooting, or reviewing Kubernetes manifests before merge.
Three short reads, in order
7 skills in this plugin
/designing-multi-cloud-architectureSelects cloud services and a multi-cloud topology using an explicit decision framework: which of the six multi-cloud patterns fits the actual driver, how AWS, Azure and GCP services map onto each other, where a cloud-agnostic abstraction pays for itself and where it costs more than lock-in, and how to phase a migration. Use when choosing cloud services for a workload, planning a cross-cloud or DR topology, or evaluating a move between providers./implementing-ci-cd-pipelinesDesigns and implements CI/CD pipelines on GitHub Actions, GitLab CI, Bitbucket Pipelines, Azure Pipelines or Jenkins: stage structure and caching, deployment strategy (rolling, blue-green, canary), OIDC federation for cloud credentials instead of stored keys, monorepo affected-only builds, and the plan-artifact and approval gates an infrastructure-as-code pipeline requires. Use when creating or changing a pipeline, wiring deployment or cloud authentication, or reviewing pipeline changes./implementing-observabilityImplements metrics, logs, traces and alerting to a standard that supports an on-call rotation: choosing a stack (Prometheus/Grafana, Loki, Tempo or Jaeger, CloudWatch, Datadog, OpenTelemetry), RED and USE metrics, SLOs with error budgets, alerts that fire on user-visible symptoms and link to runbooks, and structured logging with trace correlation. Use when adding monitoring to a service, defining SLOs, writing alert rules, or fixing an alerting setup that pages too often.npx claudepluginhub thesoftwarehouse/agentic-collections --plugin tsh-platform-engineeringOther plugins' skills for the same job