Skip to content

Instantly share code, notes, and snippets.

@krotkiewicz
Last active September 4, 2017 12:32
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 krotkiewicz/a6c5c6468493c32b99c944bf69b6862f to your computer and use it in GitHub Desktop.
Save krotkiewicz/a6c5c6468493c32b99c944bf69b6862f to your computer and use it in GitHub Desktop.
$ kubectl create service nodeport get-region --tcp=80:80 --node-port=30040
service "get-region" created
$ kubectl get deploy --context=gke_test-c63bb_us-central1-a_us-central
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
get-region 1 1 1 1 31m
$ kubectl get svc --context=gke_test-c63bb_us-central1-a_us-central
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
get-region 10.7.243.24 <nodes> 8000:30001/TCP 5m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment