Closed Kun483 closed 4 days ago
Hey! I think with the v0.6.11
release, this issue should be resolved. We added a node removal process during scale down which will remove the entry from underlying dqlite.
Please let us know if you're still experiencing this issue.
make folders,
.cluster-api/overrides/infrastructure-maas/v0.5.0
under v0.5.0 folder, create filescluster-template.yaml
,infrastructure-components.yaml
,metadata.yaml
. They are from our repo. https://github.com/spectrocloud/cluster-api-provider-maas/blob/main/templates/cluster-template.yaml https://github.com/spectrocloud/cluster-api-provider-maas/blob/main/spectro/generated/core-global.yaml https://github.com/spectrocloud/cluster-api-provider-maas/blob/main/metadata.yaml Then,Then, kubectl apply manifest (pls replace variables): maas_microk8s_cilium_share.yaml.zip Then, in target cluster, install cilium:
Please execute
clusterctl init --infrastructure maas:v0.5.0 --bootstrap microk8s --control-plane microk8s
in target cluster after all pods in the first-launched are running. To triggered RollingUpgrade for CP nodes, I change 1.27.13 to 1.28.9 and 1.27 to 1.28 in- /capi-scripts/00-install-microk8s.sh '--channel 1.27/stable --classic'
inpreRunCommands
inmcp
I observed that New Node with 1.28 version join the cluster, then it forced cilium pod in old node deleted. Then that old machine is deleted. However, pods in that old machine are not scheduled to a different node yet.e.g. when executing
clusterctl init --infrastructure maas:v0.5.0 --bootstrap microk8s --control-plane microk8s
,capi-microk8s-bootstrap-controller-manager
,capi-microk8s-control-plane-controller-manager
, andcapi-controller-manager
are on the node called07
. When RollingUpgrading, new machine (naming08
) is up and want to replace07
, these pods on07
disappeared in the cluster since machine07
is deleted before those pods are scheduled in different node. However, thedeployment
of those pods shows those pods are stillREADY 1/1
. Then, ssh into machine08
,journalctl -u snap.microk8s.daemon-kubelite
has an error below:Environment: infrastructure-maas: v0.5.0 Kernel: 5.15.0-113-generic CAPI: v1.7.4 Microk8s Boostrap: v0.6.6 Microk8s Control Plane: v0.6.6 Container Runtime: containerd://1.6.28 OS: Ubuntu 22.04.3