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

A rolling update may be terminated while in progress and resumed later. As an example, create the

ReplicationController definition file mysql.yaml shown in Figure 8-14.

Figure 8-14. The definition file mysql.yaml

Create an RC with the following command:

kubectl create –f mysql.yaml

List the pods:

kubectl get pods

The RC mysql-v1 is created, and the pods are listed as shown in Figure 8-15.

Figure 8-15. Creating an RC and listing pods

182

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

Saved successfully!

Ooh no, something went wrong!