19.06.2021 Views

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 8 ■ Using Rolling Updates

Perform a rolling update of the mysql-v1 RC to a new RC called postgresql using a new Docker image,

postgres:

kubectl rolling-update mysql–v1 postgresql --image=postgres

The rolling update is started as shown in Figure 8-16.

Figure 8-16. Starting a rolling update

While the rolling update is running, terminate the update with ^C as shown in Figure 8-17.

Figure 8-17. Terminating a rolling update

To resume the rolling update, run the same command again:

kubectl rolling-update mysql–v1 postgresql --image=postgres

As the output in Figure 8-18 indicates, the existing update is found and resumed.

Figure 8-18. Resuming a rolling update

183

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

Saved successfully!

Ooh no, something went wrong!