Skip to content

Instantly share code, notes, and snippets.

@aliakhtar
Last active January 25, 2018 22:47
Show Gist options
  • Save aliakhtar/244141fa814a3be8b8c5c5673810def9 to your computer and use it in GitHub Desktop.
Save aliakhtar/244141fa814a3be8b8c5c5673810def9 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Helper script to describe the specified pod. Usage: describe.sh <pod name>
kubectl describe po $1 -n <gig name here>
#!/usr/bin/env bash
# Helper script to get the logs of the specified pod. Usage: log.sh <pod name>
kubectl logs -f $1 -n <gig name here>
#!/usr/bin/env bash
# Helper script to get the current pod from the deployment.
kubectl get po -n <gig name here>
#!/usr/bin/env bash
# Helper script to ssh into the specified pod. Usage: ssh.sh <pod name>
kubectl exec -it $1 -n <gig name here>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment