Skip to content

Instantly share code, notes, and snippets.

@salrashid123
Last active September 11, 2017 00:36
Show Gist options
  • Save salrashid123/997e6a33e123c2d92ccb789e1eb6202d to your computer and use it in GitHub Desktop.
Save salrashid123/997e6a33e123c2d92ccb789e1eb6202d to your computer and use it in GitHub Desktop.
$ kubectl create -f my-srv.yaml -f my-rc-volume.yaml
service "myapp-srv" created
replicationcontroller "myapp-rs" created
$ kubectl get no,po,svc,rc
NAME STATUS AGE VERSION
no/gke-filier-cluster-default-pool-8f6193e8-21kn Ready 1h v1.6.7
no/gke-filier-cluster-default-pool-8f6193e8-3tz1 Ready 1h v1.6.7
no/gke-filier-cluster-default-pool-8f6193e8-ktxt Ready 1h v1.6.7
NAME READY STATUS RESTARTS AGE
po/myapp-rs-11jqc 1/1 Running 0 3m
po/myapp-rs-2sjgc 1/1 Running 0 14s
po/myapp-rs-5l0kl 1/1 Running 0 14s
po/myapp-rs-fftx5 1/1 Running 0 14s
po/myapp-rs-vm5vb 1/1 Running 0 14s
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
svc/kubernetes 10.47.240.1 <none> 443/TCP 1h
svc/myapp-srv 10.47.241.2 104.197.18.186 8080:30256/TCP 17m
NAME DESIRED CURRENT READY AGE
rc/myapp-rs 5 5 5 3m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment