$ kubectl -n <NAMESPACE> get secret <SECRET> -o json | jq -r '.data."prometheus.yaml.gz"' | base64 -d | gunzip
Created
January 12, 2023 03:02
-
-
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?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment