kubernetes copy secret to file code example
Example: kubectl print secret value
kubectl get secret <my_secret_name> -o 'go-template={{index .data "<key_name>"}}' | base64 -d
ex:
kubectl get secret my-secret -o 'go-template={{index .data "username"}}' | base64 -d