Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. @zulhfreelancer zulhfreelancer created this gist Jan 12, 2023.
    5 changes: 5 additions & 0 deletions view-yaml-gz-k8s-secret.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    ### 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
    ```