kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch04/exercises/4.11.sh

7 lines
293 B
Bash

cd /kiamol/ch04
kubectl create secret generic sleep-secret-literal --from-literal=secret=shh...
kubectl describe secret sleep-secret-literal
kubectl get secret sleep-secret-literal -o jsonpath='{.data.secret}'
kubectl get secret sleep-secret-literal -o jsonpath='{.data.secret}' | base64 -d