Kubernetes secrets are base64 encoded to ensure data consistency. This of course makes sense but it’s a pain in the ass if you need the values of your secrets on a daily basis. First download the latest version of jq from here and move the binary to /usr/local/bin/jq1.6. The latest Fedora and ubuntu versions still only have jq 1.5 in their repositories. Secondly put this in your .zshrc (or bashrc or whatever): function kubedecode { kubectl get secrets $@ -ojson | /usr/local/bin/jq1.