Read Kubernetes Secrets
Contents
A short note about reading Kubernetes Secrets.
kubectl get secret mysecret -o yaml
echo "the-encoded-string" | base64 --decode
kubectl get secret nsp-k8s-certs-expiration -o jsonpath="{.data.k8s-certs-expiration.txt}" | base64 --decode