Write a yml, set the number of rep variables to 2, and pull a helloworld app
kubectl create -f helloworld-repl-controller.yml
Look at the 2 pods already started
kubectl describe pod helloworld-controller-28nk9
Isn't the assignment successful?
Because Mao is so slow
watch kubectl get pod
5 minutes later, finally running, the magical Chinese network
Manually delete a pod, you can see after the pod is killed. The new pod will automatically be up
kubectl delete pod helloworld-controller-28nk9
kubectl scale --replicas=4 -f helloworld-repl-controller.yml
You can see that 2 pods have been expanded to 4
kubectl get rc
Change rep to 1, pod automatically kills itself 3
kubectl delete rc/helloworld-controller
Empty rc