Forked from zulhfreelancer/view-yaml-gz-k8s-secret.md
Created
November 8, 2024 13:06
Revisions
-
zulhfreelancer created this gist
Jan 12, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 ```