Open a13x5 opened 1 month ago
This issue is currently awaiting triage.
If CAPA/CAPI contributors determines this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
/kind feature
The problem
Currently when reconciling
AWSCluster
all resources needed for cluster to function are created. This works well when you have all nodes as instances. However this approach doesn't quite work when you have control plane inside kubernetes cluster (like in case of k0sproject/k0smotron).When load balancer is managed externally it creates a conflict:
.spec.controlPlaneEndpoint
ofAWSCluster
Service
and updates.spec.controlPlaneEndpoint
ofAWSCluster
Since it's impossible to use CAPA without creating
AWSCluster
current work around is to putcluster.x-k8s.io/managed-by
annotation and disableAWSCluster
reconcile, which is suboptimal.Desired solution
I see 2 ways to resolve this:
id
field is added to theAWSLoadBalancerSpec
with an ability to adopt externally created LBs and thus skipping creation of the new LB.disableCreation
field is added to theAWSLoadBalancerSpec
which simply disables creation of LB completely.This will allow to use CAPA in deployment scenarios where LB is managed externally.