Skip to content

Instantly share code, notes, and snippets.

@krotkiewicz krotkiewicz/10.k8s.sh Secret
Last active Sep 4, 2017

Embed
What would you like to do?
$ 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
You can’t perform that action at this time.