Kubernetes Secrets
Reading a secret
Kubernetes secrets can store multiple key/value pairs and the values are base64 encoded.
A quick reminder that the following command can be used to extract a value:
kubectl get secret minio-root-creds -n minio-zem -o jsonpath='{.data.password}' | base64 -d
In the above, we read:
- The value under the key
password, - under the
minio-root-credssecret, - under the
minio-zemnamesapce