Back to Practice
Lab

ConfigMaps and Environment

Separate config from code: store settings in a ConfigMap and inject them into a Deployment.

Your mission

Hardcoding configuration into an image is a trap. Kubernetes separates config from code with the ConfigMap. In this lab you store a setting in a ConfigMap and inject it into a Deployment as an environment variable.

Skills you'll put into practice

configmapsconfigurationworkloads

Make it your own.

Use this topic as a starting point for a fresh custom scenario.

Create a variation