March 2017
Beginner to intermediate
925 pages
18h 11m
English
In the previous section, we mentioned that the replication controller ensures that the user-specified number of pod replicas is running at any given time. To manage replicas with the replication controller, we have to define a configuration file with the replica count for a pod. This configuration can be changed at runtime.
Make sure the Kubernetes setup is running as described in the preceding recipe and that you are in the kubernetes directory, which was created with the preceding installation.
nginx container with a replica count of 3:$ ./cluster/kubectl.sh run-container my-nginx --image=nginx --replicas=3 --port=80
This will start three replicas of the nginx container. ...
Read now
Unlock full access