Add an ability to disable/adopt LoadBalancer #5130
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-priority
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
/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.
The text was updated successfully, but these errors were encountered: