kubectl 1.37 · Config and secrets

Create a secret

Store a value as a Secret. Use a real value and avoid leaving it in shell history.

kubectl create secret generic db --from-literal=password=change-me

Official kubectl 1.37 documentation

More config and secrets commands

All config and secrets commands · kubectl 1.37 cheatsheet

Was this page helpful?