$ kubectl -n <NAMESPACE> get secret <SECRET> -o json | jq -r '.data."prometheus.yaml.gz"' | base64 -d | gunzip
Forked from zulhfreelancer/view-yaml-gz-k8s-secret.md
Created
November 8, 2024 13:06
-
-
Save developer-guy/e3cad8413ee75edfedc255e256da4bfc to your computer and use it in GitHub Desktop.
How to view the content of *.yaml.gz file stored in Kubernetes secret?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment