Closed 0x032c closed 1 year ago
@se7vet Pls provide detailed error messages.
@se7vet If you want to deploy only one broker in one host, you may define podAntiAffinity policy like this:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: broker
topologyKey: kubernetes.io/hostname
@se7vet Has your question been resolved?
I'll close this issue, if problem still exists, please feel free to reopen it. Thank you.
@caigy These affinity nodes have taint ,how to toleration ?
when I use these configurations, they are not passed to statefulset ,
apiVersion: rocketmq.apache.org/v1alpha1
kind: Broker
metadata:
name: broker
spec:
size: 1
nameServers: ""
replicaPerGroup: 1
brokerImage: rocketmq-broker:4.5.0-alpine-operator-0.3.0
imagePullPolicy: Always
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: broker
topologyKey: kubernetes.io/hostname
In our scenario, rocketmq needs to use a unique node,How to use tolerations , nodeSelector and nodeAffinity features , like this is invalid.