Juju does not add pod affinity to pods when specifying tags in constraints
Bug #1970991 reported by
Stone Preston
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Ian Booth |
Bug Description
According to this post: https:/
$ juju deploy hello-kubecon --constraints "tags=node.
$ kubectl get -o json statefulset.
The above was tested on juju 2.9.28 and k8s 1.23 and 1.24 clusters.
The spec template does not have any affinity. I really need to be able to deploy a charm to a specific k8s node, either via node affinity or node selector. Is there another way for juju to accomplish this?
description: | updated |
description: | updated |
description: | updated |
Changed in juju: | |
milestone: | 2.9-next → none |
Changed in juju: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
A workaround for this issue is to patch the statefulset with a node-selector (or nodeAffinity depending on how complex the rules required are for scheduling).
$ kubectl patch statefulset hello-kubecon -p '{"spec": {"template": {"spec": {"nodeSelector": {"some-label": "some-value"}}}}}' -n repro-model