Zem

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:

  1. The value under the key password,
  2. under the minio-root-creds secret,
  3. under the minio-zem namesapce
tips/k8s-secrets.txt · Last modified: by 127.0.0.1