Cluster-api-provider-aws: AWS LoadBalancer doesn't like multiple Security Groups on instances

Created on 20 Apr 2019  路  8Comments  路  Source: kubernetes-sigs/cluster-api-provider-aws

/kind bug

What steps did you take and what happened:

Created a Service with type LoadBalancer:

 Warning  CreatingLoadBalancerFailed  10s (x3 over 26s)  service-controller  Error creating load balancer (will retry): failed to ensure load balancer for service default/my-service: Multiple tagged security groups found for instance i-00112233; ensure only the k8s security group is tagged; the tagged groups were sg-123(controlplane) sg-456(node)

What did you expect to happen:

Load Balancer is created!

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
I will look into the k/k integration first thing next week and see what's going on...

Environment:

  • Cluster-api-provider-aws version: Master
  • Kubernetes version: (use kubectl version): 1.13.2
  • OS (e.g. from /etc/os-release): Ubuntu
kinbug

All 8 comments

Is this related to the kubernetes.io/cluster/<name>=owned tags? If so, we can likely get away with just setting that on the "node" security group, there should be no reason that we need to add the "control plane" security group to a Service LoadBalancer.

Part of me also wonders if it would be better to have a "service" security group so that we only expose the Service ports to autogenerated ELBs instead of all of the "node" ports, but that would also cause potential problems for anyone wanting to add additional security groups to hosts.

Is this related to the kubernetes.io/cluster/<name>=owned tags? If so, we can likely get away with just setting that on the "node" security group, there should be no reason that we need to add the "control plane" security group to a Service LoadBalancer.

Thought about this issue over the weekend and reached this same conclusion. I'll start putting it together and testing it out.

@detiber any thoughts on why this only popped up this past Friday? We've had LoadBalancers successfully running for quite some time...

@detiber I think #706 will fix this actually...

this is fixed

/close

@chuckha: Closing this issue.

In response to this:

this is fixed

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

randomvariable picture randomvariable  路  4Comments

benmoss picture benmoss  路  5Comments

michaelgugino picture michaelgugino  路  5Comments

puja108 picture puja108  路  4Comments

erwinvaneyk picture erwinvaneyk  路  7Comments