Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andyzheung opened this issue Mar 4, 2022 · 2 comments

Comments

@andyzheung
Copy link

如题。

@chawanbid
Copy link

如题。

可以,
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

@classcit
Copy link

nodeselector 注意 改成 nodeSelector即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants