Affinity constraints should not render a stray `nodeAffinity` spec section
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Ian Booth |
Bug Description
When I deploy multiple units of an app with anti-affinity constraints per [1],
```bash
juju deploy --trust prometheus-k8s prom --num-units=2 \
--constraints
```
Then the resulting statefulset has a stray "nodeAffinity" section that must be manually removed, otherwise the units are stuck in `waiting/
```diff
-nodeAffinity:
- requiredDuringS
- nodeSelectorTerms:
- - {}
podAntiAffinity:
requiredDurin
- labelSelector:
- key: app.kubernetes.
values:
- prom
topologyKey: kubernetes.
```
[1]: https:/
Changed in juju: | |
milestone: | none → 3.3.5 |
status: | New → Triaged |
importance: | Undecided → High |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Juju 3.4.2-genericli nux-amd64
MicroK8s v1.29.2 revision 6529
Ubuntu 22.04.4 on Multipass