Skip to content

Instantly share code, notes, and snippets.

@jpswade
Created October 19, 2017 13:25
Show Gist options
  • Save jpswade/c6b28bf74995132198ee7c330ce3ea4b to your computer and use it in GitHub Desktop.
Save jpswade/c6b28bf74995132198ee7c330ce3ea4b to your computer and use it in GitHub Desktop.
Kubenetes cheatsheet
# Run a command on a pod with the name database.
kubectl exec -it $(kubectl get pods --selector=app=database -o=name | awk -F "/" '{print $2}') /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment