Skip to content

Instantly share code, notes, and snippets.

@bharatmicrosystems
Created July 26, 2020 19:24
Show Gist options
  • Select an option

  • Save bharatmicrosystems/db715992b93a0d54d2eb0e33ef41795c to your computer and use it in GitHub Desktop.

Select an option

Save bharatmicrosystems/db715992b93a0d54d2eb0e33ef41795c to your computer and use it in GitHub Desktop.
$ kubectl scale deployment nginx --replicas 6
deployment.apps/nginx scaled
$ kubectl get pod -o wide| grep nginx
nginx-9cddb4b5-6ckw9 1/1 Running 0 2m37s 10.60.2.23 gke-cluster-1-default-pool-bf356567-mrnh
nginx-9cddb4b5-8nkwh 1/1 Running 0 2m39s 10.60.1.14 gke-cluster-1-default-pool-f41b1aed-5n51
nginx-9cddb4b5-9r75f 1/1 Running 0 3s 10.60.0.25 gke-cluster-1-default-pool-b54224b7-zwrp
nginx-9cddb4b5-gqmbc 1/1 Running 0 3s 10.60.2.24 gke-cluster-1-default-pool-bf356567-mrnh
nginx-9cddb4b5-k2s2n 1/1 Running 0 2m36s 10.60.1.15 gke-cluster-1-default-pool-f41b1aed-5n51
nginx-9cddb4b5-z5zmz 1/1 Running 0 2m39s 10.60.0.24 gke-cluster-1-default-pool-b54224b7-zwrp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment