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

Figure 9-55. Adding another-annotation-key: another-annotation-value

Delete the with-label pod and create the pod again as shown in Figure 9-56. The pod is again

scheduled on the node with the label kubernetes.io/image-name: nginx.

Figure 9-56. Scheduling a pod with node affinity

The node affinity preferredDuringSchedulingIgnoredDuringExecution is only a hint. To demonstrate

that, set all the options for the kubernetes.io/image-name label key to hello-world, both in the In

expression and in the another annotation as shown in Figure 9-57.

233

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

Saved successfully!

Ooh no, something went wrong!