# Useful commands

{% embed url="<https://kubernetes.io/docs/reference/kubectl/quick-reference/>" %}

{% embed url="<https://www.bluematador.com/learn/kubectl-cheatsheet>" %}

kubectl get secret \<pod\_name> -o jsonpath={.data.mysql-root-password} | base64 -d

kubectl get secret \<pod\_name> -o template='{{index .data "mysql-root-password" | base64decode}}'

kubectl get secret snug-penguin-mysql -o json | jq '.data."mysql-root-password"' -r | base64 -d
