Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Latest commit

 

History

History
29 lines (19 loc) · 645 Bytes

replication-controller.md

File metadata and controls

29 lines (19 loc) · 645 Bytes

Create a replication controller

  • Create a replication controller to maintain multiple pod replicas
  • View the details of the controller and the pods

Create a replication controller

This replication controller will ensure 2 replicas exist.

kubectl create -f rc.yml

List all replication controllers

kubectl get rc

[rc is a shorthand for replicationControllers]

This should now show the 'simple-cms' replication controller with 2 replicas (pods). See the detail of these pods as before using kubectl.

kubectl get pods 

Next up: scale the replication controller.