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 14 ■ Configuring Logging

Create an RC with kubectl create using the definition file:

./kubectl create -f mysql-rc.yaml

List the RC:

./kubectl get rc –namespace=kube-system

The mysql-rc RC should be listed as shown in Figure 14-13.

Figure 14-13. Creating and listing a replication controller in the kube-system namespace

List the pods in the kube-system namespace, and the mysql pods should be listed as shown in

Figure 14-14.

Figure 14-14. Listing pods in the kube-system namespace

317

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

Saved successfully!

Ooh no, something went wrong!