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 9 ■ Scheduling Pods on Nodes

Create a pod using the pod2.yaml definition file:

./kubectl create -f pod2.yaml

The pod pod-with-default-scheduler-annotation-container is created and listed, as shown in

Figure 9-17.

Figure 9-17. Creating and listing the pod with scheduler annotation

The default scheduler is used regardless of whether it is specified explicitly. To verify that the defaultscheduler

is used, list the Events. The pod named pod-with-default-scheduler-annotation-container is

listed to have been scheduled using the default-scheduler, and so is the pod pod-without-annotation, as

shown in Figure 9-18.

Figure 9-18. The pods are scheduled using the default-scheduler

212

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

Saved successfully!

Ooh no, something went wrong!