-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
The old v1 ALBIngressController automatically added the "common tag" with the value "shared" to a subnet when it was discovered, unless it was "owned" by another cluster. This auto tagging behavior seems to have been removed from the v2 loadbalancer controller.
As expected; after upgrading to v2 the previously created "common tags" remain and are not created for new clusters.
However when I create a new cluster the aws-loadbalancer-controller isn't able discovery subnets
{"level":"error","ts":1623679233.7658975,"logger":"controller","msg":"Reconciler error","controller":"ingress","name":"app-2048","namespace":"default","error":"couldn't auto-discover subnets: unable to discover at least one subnet"}
The subnets have the following tags;
- kubernetes.io/cluster/existing-cluster-name: shared
- kubernetes.io/role/elb: 1
- kubernetes.io/role/internal-elb: 1
I expected this to work because the subnet is marked as "shared" however this logic might've been (accidentally) removed in pr;
#1773 so it looks like "shared" is treated the same way as "owned"
A workaround is to manually remove the existing "common tag".
Or am I doing something else wrong?