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
kubectl 1.37 · Config and secrets
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
Was this page helpful?