redis-cluster-operator icon indicating copy to clipboard operation
redis-cluster-operator copied to clipboard

redis集群不能指定nodeselector吗?需要能部署到指定的几个节点上。

Open andyzheung opened this issue 3 years ago • 2 comments

如题。

andyzheung avatar Mar 04 '22 09:03 andyzheung

如题。

可以, spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: node-label operator: In values: - "yes" podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: app operator: In values: - rediscluster topologyKey: kubernetes.io/hostname weight: 100

image

chawanbid avatar Apr 05 '22 07:04 chawanbid

nodeselector 注意 改成 nodeSelector即可

classcit avatar May 27 '22 11:05 classcit