Declare everything in YAML, never kubectl-edit in production, put limits on every container, and use namespaces for isolation.
Kubernetes that ages well
Everything in Git
No
kubectl edit, nokubectl run. All manifests in Git, applied via GitOps (Argo CD, Flux).Resource requests and limits on every container
Without them, the scheduler cannot place pods sensibly and one greedy pod can starve a node.
Health checks on every workload
readinessProbecontrols traffic;livenessProbecontrols restarts. Without them, broken pods stay in rotation.Namespaces per environment
dev,staging,prodin separate namespaces with RBAC and quotas. Not one flat cluster for everything.Pin image digests, not tags
image@sha256:...in production. Tags move; digests do not.Prefer StatefulSets only when you must
Stateless workloads belong in Deployments. StatefulSets are for databases and anything with stable identity.