In this training, we will learn about Replicasets.
Navigate to the folder
05_replicasets
from CLI, before you get started.
cat replicaset.yaml
kubectl create -f replicaset.yaml
Find and fix the two issues in there.
kubectl get pods
kubectl scale replicaset my-replicaset --replicas 3
Open second terminal to watch the Pods
watch -n 1 kubectl get pods
kubectl delete pod <POD-NAME>
Open second terminal to watch the Pods
watch -n 1 kubectl get pods
Delete the ReplicaSet
kubectl delete replicaset my-replicaset
Verify if replicaset is delete including all the associated pods
kubectl get rs,po