Answers for "kubectl edit secret"

1

kubectl edit secret

kubectl get secret mysecret -o json | jq '.data["foo"]="YmFy"' | kubectl apply -f -
Posted by: Guest on August-19-2020
0

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
Posted by: Guest on March-04-2020

Browse Popular Code Answers by Language