Create a generic secret

Kubernetes Administration Essentials · 4:29

Listen on 93

Lyrics

[Verse 1]
When your app needs private data stored away
Passwords and tokens that can't see the light of day
Kubernetes has a way to keep things concealed
With secrets that are properly sealed

[Chorus]
kubectl create secret generic name
from literal makes the claim
Password equals your secure string
That's the pattern that we sing
Generic secrets keep it safe
In the cluster's hidden space
kubectl create secret generic name
That's how we play the secret game

[Verse 2]
Start with kubectl and the create command
Secret generic helps you take a stand
Choose a name that makes sense to you
Then from literal will see you through

[Chorus]
kubectl create secret generic name
from literal makes the claim
Password equals your secure string
That's the pattern that we sing
Generic secrets keep it safe
In the cluster's hidden space
kubectl create secret generic name
That's how we play the secret game

[Bridge]
No more hardcoded passwords in your code
Let Kubernetes carry that heavy load
From literal flag will take your key
And store it securely for all to see
Well, not to see, that's the whole point
Keep those secrets out of joint

[Chorus]
kubectl create secret generic name
from literal makes the claim
Password equals your secure string
That's the pattern that we sing
Generic secrets keep it safe
In the cluster's hidden space
kubectl create secret generic name
That's how we play the secret game

[Outro]
S three cur three P at sign s s
That's a password we won't confess
But now you know the proper way
To store secrets night and day

← Create from a file | Create TLS secret →