This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.3.3.4.2. Pod 反关联性
以下示例演示了具有匹配标签和标签选择器的 pod 的 pod 反关联性。
pod pod-s1 具有标签
security:s1
。Copy to Clipboard Copied! Toggle word wrap Toggle overflow pod pod-s2 在
podAntiAffinity
下具有标签选择器security:s1
。Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
pod pod-s2 无法调度到与
pod-s1
相同的节点上。