HomeChallengesRepsProblemsLeaderboardTake a challenge

One chart, many services

Four services, four copies of the same Deployment, each edited by hand and each drifting. Turn it into one chart that every service installs, with a values file that holds only what is different.

Intermediate25 min on the clock5 graded checks · 100 pointsFrom Laptop to Cluster
Graded by reading your code against the checklist below.

What you build

  • Build the env list with a range over the values
  • Quote every environment value
  • Render resources with toYaml and nindent
  • Take the image repository and tag from values
  • Put only what differs into the service’s values.yaml

Done means

The template loops over env and secrets, quotes values, renders resources from values, and the service supplies only its own facts.

How it is graded

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

  1. Env entries come from a range over values+25Telling Kubernetes what it needs to know
  2. Environment values are quoted+15Telling Kubernetes what it needs to know
  3. Resources are rendered from values+20Telling Kubernetes what it needs to know
  4. The image comes from values+15Telling Kubernetes what it needs to know
  5. The service’s values hold only its facts+25Telling Kubernetes what it needs to know

What it teaches

The rest of From Laptop to Cluster