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

Figure 14-4. Counter pod definition file

Create a pod from the pod definition file:

./kubectl create -f counter-pod.yaml

The counter pod is generated. List the pods. Get the logs for the pod counter:

./kubectl logs counter

The logs are listed as shown in Figure 14-5.

Figure 14-5. Creating the counter pod and getting pod logs

312

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

Saved successfully!

Ooh no, something went wrong!