HomeChallengesRepsProblemsLeaderboardTake a challenge

A Deployment Kubernetes can look after

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.

Intermediate25 min on the clock5 graded checks · 100 pointsFrom Laptop to Cluster

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.

Graded by reading your code against the checklist below.

What you build

  • Pin the image to an exact version
  • Read the connection string from a Secret
  • Add a liveness probe and a readiness probe
  • Point them at different endpoints
  • Set resource requests and a memory limit

Done means

An exact image version, secrets by reference, separate liveness and readiness probes, and requests with a memory limit.

How it is graded

Published in full, before you start — every point is one of these and there is nothing else.

  1. The image is pinned to a version+15Telling Kubernetes what it needs to know
  2. The connection string comes from a Secret+25Telling Kubernetes what it needs to know
  3. Liveness and readiness probes+25Running it in production
  4. They ask different questions+15Running it in production
  5. Requests and a memory limit+20Telling Kubernetes what it needs to know

What it teaches

The rest of From Laptop to Cluster