Skip to content

Instantly share code, notes, and snippets.

@krotkiewicz

krotkiewicz/3.sh Secret

Created February 3, 2018 09:19
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/cf4ca98077fe1018dc520fff03c430f4 to your computer and use it in GitHub Desktop.
Save krotkiewicz/cf4ca98077fe1018dc520fff03c430f4 to your computer and use it in GitHub Desktop.
3.sh
root@node $ kubectl scale deploy nginx --replicas=6
root@node $ kubectl get pods -o=wide
NAME READY STATUS RESTARTS AGE IP NODE
nginx 1/1 Running 0 1h 172.17.0.3 node
nginx-31893996-3dnx7 1/1 Running 0 1h 172.17.0.5 node
nginx-31893996-5d1ts 1/1 Running 0 1h 172.17.0.6 node
nginx-31893996-5xnhc 1/1 Running 0 17s 172.17.0.2 node2
nginx-31893996-9k93w 1/1 Running 0 1h 172.17.0.4 node
nginx-31893996-lfrzl 1/1 Running 0 17s 172.17.0.4 node2
nginx-31893996-q99cp 1/1 Running 0 17s 172.17.0.3 node2
nginx2 1/1 Running 0 1h 172.17.0.2 node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment