In the training, we will learn about Secrets.
Navigate to the folder
13_secret
from CLI, before you get started.
Note that, there are errors in the yaml files. Try to fix them.
cat secret.yaml
kubectl create -f secret.yaml
cat pod.yaml
kubectl create -f pod.yaml
kubectl exec -it my-pod -- cat /opt/my-volume/<FILENAME>
kubectl get secret my-secret -o yaml
Convert the secret into human readable format
kubectl get secret my-secret -o jsonpath='{.data.foo}' | base64 -d
kubectl delete pod my-pod
kubectl delete secret my-secret