Skip to content

Instantly share code, notes, and snippets.

@Martin-Andersen
Created April 20, 2022 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Martin-Andersen/0da2bad8ea1abd10f40a494208dc1409 to your computer and use it in GitHub Desktop.
Save Martin-Andersen/0da2bad8ea1abd10f40a494208dc1409 to your computer and use it in GitHub Desktop.
Kubectl tips

Secrets

kubectl get secrets
kubectl get secrets/db-inv-external-reader --template='{{.data.password | base64decode}}'

Run commands in a pod

kubectl exec --stdin --tty swiss-army-knife-57bd8544b6-wwjd2 -- /bin/bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment