19.06.2021 Views

148422597X Kubernetes Management Design Patterns [Vohra 2017-01-29] {E559F6BB}

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 6 ■ Using Volumes

Figure 6-10. The pod-aws.yaml

Create a replication controller with the kubectl create command:

./kubectl create -f pod-aws.yaml

List the deployments, replication controllers, and pods:

./kubectl get deployments

./kubectl get rc

./kubectl get pods

A replication controller is created. The pod may initially be listed as not ready, as shown in Figure 6-11.

143

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!