Failed to deploy when kubeapi-load-balancer and kubernetes-control-plane are on the same host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Kubernetes Worker Charm |
New
|
Undecided
|
Rafael Lopez |
Bug Description
When deploying kubernetes-
And the following error message was found in juju logs.
2023-11-01 04:12:33 ERROR unit.kubernetes
Traceback (most recent call last):
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
hookenv.
File "/var/lib/
_port_
File "/var/lib/
subprocess.
File "/usr/lib/
raise CalledProcessEr
subprocess.
This can be easily reproduced with charmed-kubernetes bundle with the following overlay.
I used juju v3.1.6
juju deploy charmed-kubernetes --channel 1.28/stable -overlay ./overlay-
machines:
# k8s-control-plane
'0': {constraints: instance-
'1': {constraints: instance-
'2': {constraints: instance-
# k8s-worker
'3': {constraints: instance-
'4': {constraints: instance-
'5': {constraints: instance-
applications:
easyrsa:
num_units: 1
to:
- 0
etcd:
num_units: 3
to:
- 0
- 1
- 2
kubeapi-
num_units: 1
to:
- 1
kubernetes-
num_units: 3
to:
- 0
- 1
- 2
kubernetes-
num_units: 3
to:
- 3
- 4
- 5
This placement used to work with previous bundle revision.
I believe this is happening after the following relations:
- ['kubernetes-
- ['kubernetes-
BTW, I get the same error when deploying kubeapi- load-balancer on the same host as kubernetes-worker.