Create from literal values

Kubernetes Administration Essentials · 3:44

Listen on 93

Lyrics

[Verse 1]
When you need data stored inside your cluster
ConfigMaps are the way to go
From literal values, build your configuration
Let me teach you what you need to know

Start with kubectl, then create configmap
Give it any name you choose
Add from literal flag, then key equals value
That's the pattern you will use

[Chorus]
From literal, from literal
Key equals value every time
From literal, from literal
Each setting on a separate line
Double dash from literal
That's the flag you need to know
Build your config piece by piece
Watch your application grow

[Verse 2]
Maybe you need database connection strings
Or perhaps some feature flags
Each key value pair gets its own from literal
No more complicated tags

First key might be database host
Second could be database port
Chain them together with multiple flags
Clean configuration, nice and short

[Chorus]
From literal, from literal
Key equals value every time
From literal, from literal
Each setting on a separate line
Double dash from literal
That's the flag you need to know
Build your config piece by piece
Watch your application grow

[Bridge]
No files needed, no complex setup
Just type the values as you go
Direct and simple, clear and readable
Everything your pods need to know

Environment variables, application settings
All stored safe within the map
Ready when your containers start up
Filling every config gap

[Chorus]
From literal, from literal
Key equals value every time
From literal, from literal
Each setting on a separate line
Double dash from literal
That's the flag you need to know
Build your config piece by piece
Watch your application grow

[Outro]
Kubectl create configmap with your name
From literal makes it clear
Key equals value, repeat as needed
Your configuration's always here

← List ingress resources | Check CoreDNS →