Kubernetes Microservices with Docker by Deepak Vohra

Kubernetes Microservices with Docker by Deepak Vohra

Author:Deepak Vohra
Language: eng
Format: epub, pdf
Publisher: Apress, Berkeley, CA


Run the following command to create a replication controller.

kubectl create -f mongo-rc.yaml

List the replication controllers with the following command.

kubectl get rc

The mongo-rc replication controller gets created and listed as shown in Figure 7-31.

Figure 7-31.Creating a Replication Controller from a Definition File

List the Pods with the following command.

kubectl get pods

Only one of the two replicas is listed as Running and READY (1/1). Even if the preceding command is run multiple times, only one replica is listed as running as shown in Figure 7-32.

Figure 7-32.Listing the Pods after creating a Replication Controller



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.