Telling Kubernetes what it needs to knowintermediate
Kubernetes can restart, schedule and roll back a service only with what the manifest tells it — probes, resources, an exact image — and a chart keeps that the same for every service.
It runs, but Kubernetes knows nothing about it: no way to tell a stuck pod from a busy one, no limit on what it can use, a password in plain text in Git, and an image tag that means something different every day.
See alsoWhen Redis is goneThe application side: what /health/live and /health/ready check, and which failure status each dependency reports.
AssumesDocker + GitHub ActionsThe image this Deployment runs is built there: multi-stage, non-root, with a healthcheck. Kubernetes takes over from where that stage stops.
An exact image version, secrets by reference, separate liveness and readiness probes, and requests with a memory limit.
Published in full, before you start — every point is one of these and there is nothing else.
Kubernetes can restart, schedule and roll back a service only with what the manifest tells it — probes, resources, an exact image — and a chart keeps that the same for every service.
A healthcheck is how the platform knows to restart your container, and running as a non-root user is how a bug stops being a breach.