Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 552 Bytes

replication-controllers.md

File metadata and controls

34 lines (22 loc) · 552 Bytes

Creating and managing replication controllers

  • Horizontally scale pods using a replication controller

You will not be able to access pods after this lab. You need to spin up a Kubernetes service later.

Listing Replication Controllers

kubectl get replicationControllers

Use rc as a shorthand for replicationControllers

kubectl get rc
kubectl get pods

Horizontally scaling pods

Resize the replication controller

kubectl scale rc inspector --replicas=10
kubectl get pods --watch-only