Create from a file

Kubernetes Administration Essentials · 4:04

Listen on 93

Lyrics

[Verse 1]
When your config needs a home in Kubernetes land
There's a simple way to get it all planned
Take your properties file sitting on your drive
kubectl create will bring it alive

From file to cluster, data flows so clean
ConfigMap magic, best you've ever seen
Name your resource, point it to the source
Let Kubernetes handle it with gentle force

[Chorus]
From file creates the map you need
Config properties, plant the seed
Dash dash from file, that's the key
Name and path, now you're running free

From env file when environment calls
One command and you've got it all
Create ConfigMap, data in place
Kubernetes storage with perfect grace

[Verse 2]
Properties file with keys and values neat
Dot properties extension, configuration complete
Name your ConfigMap, something you'll remember
From file flag points to your dataember

When environment variables need their space
Dot env file puts them in their place
From env file flag does the trick
One command and your config sticks

[Chorus]
From file creates the map you need
Config properties, plant the seed
Dash dash from file, that's the key
Name and path, now you're running free

From env file when environment calls
One command and you've got it all
Create ConfigMap, data in place
Kubernetes storage with perfect grace

[Bridge]
kubectl create, the command starts
ConfigMap name, straight from the heart
From file or env file, choose your way
Data flows where pods can play

[Verse 3]
Two paths forward, both will serve you well
Properties or env, both have stories to tell
From file takes your config straight and true
From env file makes environment new

Name your maps with purpose and with care
Data living in the cluster's air
Pods will find them when the time is right
Configuration shining bright

[Chorus]
From file creates the map you need
Config properties, plant the seed
Dash dash from file, that's the key
Name and path, now you're running free

From env file when environment calls
One command and you've got it all
Create ConfigMap, data in place
Kubernetes storage with perfect grace

[Outro]
File to cluster, simple as can be
ConfigMap creation, you hold the key
From file, from env file, both ways shine
Kubernetes config, working fine

← Test DNS resolution from inside the cluster | Create a generic secret →