Closed eromanova closed 1 week ago
UPD
Initially, we used a kinda old AWS ccm image (v1.27.1). The issue is no longer present after the AWS ccm bump to v1.30.3
. I think it'll be good to mention that k0smotron v1.0.2 requires the minimal AWS ccm version in docs.
k0smotron.logs.txt k0s.logs.txt
Versions
v1.30.2+k0s.0
v1.0.2
Steps to reproduce
k0s
as a bootstrap provider andaws
as infrastructure provider using k0smotron and cluster API (simple setup for testing: 1 control plane, 1 worker). All cluster objects are provided below.Expected result
The cluster is deployed successfully.
Actual result
The worker node is not registered in kubernetes while the control plane node is registered successfully.
k0smotron logs contain the following:
K0s logs don't contain anything interesting. It looks like it successfully registered the node but then it starts arguing about it's absence:
While trying to reproduce this issue, I noticed that the node was initially present in the cluster but after about 10 seconds it was removed from the list. Probably, the error in the k0smostron controller relates somehow because according to the k0smotron logs the events were as follows:
waiting for node to be available for machine
thenfailed to update node
and then againwaiting for node to be available for machine
. This means the condition https://github.com/k0sproject/k0smotron/blob/v1.0.2/internal/controller/bootstrap/providerid_controller.go#L73 was met at some point.UPD: AWS CCM logs contain the following:
So, it looks like AWS ccm deleted the node.
Please, let me know if more details are needed.
My cluster objects: