Deciding in advance how to failadvanced
Every shared dependency goes down eventually, so each feature needs a decided answer — stop, or carry on with less — and the health checks have to say which, without restarting pods that are fine.
Redis blips for twenty seconds and every pod of both services restarts, purchases fail because a popup could not be sent, and a full Redis evicted the encryption keys. Decide in advance how each feature fails.
See alsoA Deployment Kubernetes can look afterThe Kubernetes side of the same decision: which probe calls which endpoint, and what a failure of each one makes Kubernetes do.
Per-service failure status, dependencies only on readiness, a best-effort push, and an eviction policy that cannot remove the key ring.
Published in full, before you start — every point is one of these and there is nothing else.
Every shared dependency goes down eventually, so each feature needs a decided answer — stop, or carry on with less — and the health checks have to say which, without restarting pods that are fine.
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.