Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Kubernetes Deploys?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/adityaaatiwari-kubernetes-deploys-anvil)
---
name: kubernetes-deploys
description: "Change Kubernetes manifests and Helm charts safely: probes, resources, rollouts, security context and dry runs"
---
<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->
# Kubernetes deploys
Use when editing manifests, Helm charts or Kustomize overlays.
## Every workload needs
- `resources.requests` (and memory `limits`) sized from real usage.
- `readinessProbe` (gates traffic) and `livenessProbe` (restarts) that check different things; a liveness probe that depends on the database will restart healthy pods during an outage. Use `startupProbe` for slow starts.
- A rolling update strategy with `maxUnavailable` chosen deliberately, and a `PodDisruptionBudget` plus `topologySpreadConstraints` (or pod anti-affinity) for services with more than one replica.
- Graceful shutdown: handle `SIGTERM`, and set `terminationGracePeriodSeconds` longer than your longest request.
## Security
- `securityContext`: `runAsNonRoot: true`, `readOnlyRootFilesystem: true` where possible, `allowPrivilegeEscalation: false`, drop all capabilities.
- Secrets from Secret objects or an external secret manager, never in ConfigMaps or images. Least-privilege ServiceAccounts and RBAC.
- Pin image tags or digests; never deploy `:latest`.
- Restrict east-west traffic with a default-deny `NetworkPolicy` plus explicit ingress/egress allows.
## Change process
1. Render and diff before applying: `helm template` / `kustomize build`, then `kubectl diff -f -`.
2. Validate: `kubectl apply --dry-run=server` against the cluster, plus `kubeconform` or the repo's policy checks.
3. Apply through the repo's pipeline (GitOps or CI), not ad hoc from a laptop, unless the user asks.
4. Watch the rollout (`kubectl rollout status`) and know the rollback (`kubectl rollout undo` or reverting the commit).
Never run `kubectl delete` or apply to production without explicit user confirmation.