spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: security
operator: In
values:
- s1
topologyKey: kubernetes.io/hostname
这个能保证pod一个个起能分布在不同的node,但是当你有2个replica时,rollout
restart,他可能还会在一个节点启动
有人碰到过吗
--
FROM 119.139.196.*