Open yossisht9876 opened 2 years ago
tolerations
go under a specific nodeConfigGroup
. So if you're using default_group
for each of your nodes, it'd look like this:
spec:
nodeConfigGroups:
default_group:
nodeConfigGroups:
default_group:
tolerations:
- key: taint.key
operator: Equal
value: "true"
effect: "NoSchedule"
nodeSelector
goes in the same spot.
docs: https://orange-opensource.github.io/nifikop/docs/5_references/1_nifi_cluster/3_node_config
thanks i figure it out but i have another problem for some reason only the master pod scheduled to the dedicated node-group but the 2 other workers pods aren't scheduled in the node group even when they have the toleration configured.
is it need to be like that ? @michael81877
If you want to pin the NiFi pods to dedicated nodes which you've tainted, you must specify both a nodeSelector
/nodeAffinity
and the toleration
. Specifying only the tolerations just tells k8s that it is allowed to schedule the pods on nodes which have a particular taint, but it won't necessarily.
thanks @michael81877 works like a charm
hey all,
i have a problem configure toleration to the nifi-cluster pods.
"error: error validating "nifi-cluster.yaml": error validating data: ValidationError(NifiCluster.spec): unknown field "tolerations" in com.orange.nifi.v1alpha1.NifiCluster.spec; if you choose to ignore these errors, turn validation off with --validate=false"
its works for the zookeeper setup and for the helm nifikop chart.
but i didnt find a way to set toleration or Nodeselector to the nifi-cluster.yaml
here is my conf: