Welcome to the Linux Foundation Forum!

Critical mistake in explanation of podAntiAffinity Example

oleksazhel
oleksazhel Posts: 57
edited June 2022 in LFS258 Class Forum

In https://trainingportal.linuxfoundation.org/learn/course/kubernetes-fundamentals-lfs258/scheduling/scheduling?page=9 it is said that:

"With podAntiAffinity, we can prefer to avoid nodes with a particular label. In this case, the scheduler will prefer to avoid a node with a key set to security and value of S2. "

But podAntiAffinity is not about nodes it is about pods. It will not check nodes' labels it will check pods labels IMHO.

From https://docs.openshift.com/container-platform/3.11/admin_guide/scheduling/pod_affinity.html "Pod anti-affinity can prevent the scheduler from locating a new pod on the same node as pods with the same labels if the label selector on the new pod matches the label on the current pod."

Categories

Upcoming Training