Expose JUJU_AVAILABILITY_ZONE as a node label
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Kubernetes Worker Charm |
New
|
Undecided
|
Unassigned |
Bug Description
By default, the charmed deployment will add labels like the following for worker nodes:
$ kubectl get nodes --show-labels
NAME STATUS ROLES AGE VERSION LABELS
calm-alien Ready <none> 3m48s v1.22.4 beta.kubernetes
...
MAAS and OpenStack in mind as Juju providers set JUJU_AVAILABILI
This namespace could be used for that.
https:/
Here is an example from other charms:
https:/
A current workaround is to use a charm option as "labels":
https:/
However, it requires an application in each zone so it's cumbersome from an operational point of view. i.e.,
juju config kubernetes-
juju config kubernetes-
juju config kubernetes-
...
could be something simpler like the following or even with zero option:
juju config kubernetes-worker expose-zone=true
tags: | added: good-first-bug |