· 6 years ago · Oct 02, 2019, 10:40 PM
1#!/bin/bash 2 3# Usage: ./get_k8s_secret_plaintext SECRET_NAME SECRET_KEY 4 5kubectl get secret $1 -o json | jq -r '.data[$2]' | base64 --decode