Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Created January 12, 2023 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zulhfreelancer/89e2f8bc0a6e3e05fa550be793ddf895 to your computer and use it in GitHub Desktop.
Save zulhfreelancer/89e2f8bc0a6e3e05fa550be793ddf895 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