Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save developer-guy/e3cad8413ee75edfedc255e256da4bfc to your computer and use it in GitHub Desktop.
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?

How to view the content of *.yaml.gz file stored in Kubernetes secret?

$ kubectl -n <NAMESPACE> get secret <SECRET> -o json | jq -r '.data."prometheus.yaml.gz"' | base64 -d | gunzip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment