Skip to content

Instantly share code, notes, and snippets.

@bitliner
Last active June 28, 2020 09:32
Show Gist options
  • Save bitliner/cc874107672bb55dcce46cf58a14c1c1 to your computer and use it in GitHub Desktop.
Save bitliner/cc874107672bb55dcce46cf58a14c1c1 to your computer and use it in GitHub Desktop.

Kubernetes

Get IP of a pod

  • kubectl get pods - get the name of a deployment or pod
  • kubectl exec --stdin --tty <POD_NAME> -- /bin/bash - ssh into the pod
  • wget ifconfig.me - get external ip
  • whois IP - get info about the ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment