-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The managed-by annotation should be removed for AWS deployments #668
Comments
That annotation is/was used as there was a 🐔 and 🥚 problem with CAPA provider. When we let it to create all the resources, which includes ELB for the CP, it also populates the
This is surprising, to me at least. We did quite extensive testing with AWS in the early days and always hit the above mentioned problem. Maybe they've changed somthing in CAPA provider side. Did you test with both hosted controlplanes and CPs using |
Thanks for the answer! Yes, now I see what you're talking about. CAPA controller tries to create LB and fails to do so, because it wants to update LB field which was already filled by k0smotron
And then just marks cluster as defunct somehow
But machines are actually created in my case and I don't see any extra LBs, so it looks like it all works from the first glance. I overlooked the fact that AWS provider don't like what's going on there. And it looks more like CAPA related problem here. Did you research a possibility for proper fix? In CAPA perhaps? |
Also I forgot to add: Thus to create cluster we need manually patch status and to delete it we must manually handle all |
I've had a quick look but unfortunately have not had time to go deep enough to provide an actual fix there. 😢 |
@jnummelin I recently tested Azure provider (CAPZ) and we have similar situation with it as well. The main difference between the two is that CAPZ is not misbehaving trying to update Given the fact that CAPZ don't have any option to disable LB creation (as well as CAPA) will you consider handling it on k0smotron side? |
talked about this in the k0smotron office working hours:
|
I created kubernetes-sigs/cluster-api-provider-aws#5130 in CAPA upstream. |
The
cluster.x-k8s.io/managed-by: k0smotron
annotation is required as it described in the k0somotron documentationWhere it’s explicitly says that:
In CAPI docs this annotation is explained as “that some external system is managing the cluster infrastructure“. In this case this means that k0smotron should be responsible for AWS resources creation, which it doesn’t do.
And Cluster API AWS provider just skipping reconcile and creation of all AWS resources. Workers will not be created until we manually set the
.status.ready
field inAWSCluster
totrue
. Certain resources, (like public IPs) however are still dependent on properAWSCluster
reconcile. Thus workers with public IPs will not be created.This behavior significantly complicates deployment, since it's certain parts of automation are disabled. More so with the annotation removed all works just fine.
What was a purpose of adding it to the docs? It should be removed completely if not pose significant drawbacks
The text was updated successfully, but these errors were encountered: