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 8 ■ Using Rolling Updates

Figure 8-6. The mysql.yaml file in a vi editor

Run the following command to create an RC:

kubectl create –f mysql.yaml

List the RC and the pods:

kubectl get rc

kubectl get pods

The mysql-v1 RC is created and listed. The three pods also are listed as shown in Figure 8-7.

Figure 8-7. Creating an RC and listing the pods

178

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

Saved successfully!

Ooh no, something went wrong!