Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 408 Bytes

README.md

File metadata and controls

21 lines (11 loc) · 408 Bytes

Secrets

Secrets are not encrypted, only decoded.

Secret values must be base64 encoded

Commands

kubectl get secrets

kubectl get secret app-secret -o yaml

kubectl describe secrets

kubectl create secret generic app-secret --from-literal=DB_HOST=mysql --from-literal=USER=root

kubectl create secret generic app-secret --from-file=path

echo -n 'mysql' | base64

echo -n 'bXlzcWw=' | base64 --decode