GithubHelp home page GithubHelp logo

Don't create an additional SecurityGroups if it's already defined by aws-load-balancer-security-groups annotation about cloud-provider-aws HOT 5 CLOSED

kubernetes avatar kubernetes commented on August 17, 2024 5
Don't create an additional SecurityGroups if it's already defined by aws-load-balancer-security-groups annotation

from cloud-provider-aws.

Comments (5)

DzmitrySudnik avatar DzmitrySudnik commented on August 17, 2024 3

More over, it never cleans that security groups leaving it orphaned clattering your account and eventually hitting a limit.

from cloud-provider-aws.

ivan-sukhomlyn avatar ivan-sukhomlyn commented on August 17, 2024 3

@yevhen-kalyna Thanks for your suggestion.
I already did it.
But this bug is still present.
The provider creates redundant resources and rewrites a defined one in the cloud instead of using the provided security group in case when I want to configure access to LB exactly via SecurityGroup (by another SG definition in inbound/outbound rules) instead of IP ranges.

from cloud-provider-aws.

lbontecou avatar lbontecou commented on August 17, 2024

Ran into this while trying to create an ELB with a whitelist only open to a 3rd party. Our intention was to make the whitelisted security-group a terraform managed resource used by multiple load balancers.

$ k version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:18:23Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"13+", GitVersion:"v1.13.12-eks-c500e1", GitCommit:"c500e11584c323151d6ab17526d1ed7461e45b0c", GitTreeState:"clean", BuildDate:"2019-10-22T03:11:52Z", GoVersion:"go1.11.13", Compiler:"gc", Platform:"linux/amd64"}

from cloud-provider-aws.

yevhen-kalyna avatar yevhen-kalyna commented on August 17, 2024

Just use additional annotation load-balancer-source-ranges to your current annotations :

annotations:
    service.beta.kubernetes.io/load-balancer-source-ranges: ["x.x.x.x/xx","x.x.x.x/xx"]

And you will get rules dedicated to your IPs.
@ivan-sukhomlyn

from cloud-provider-aws.

ivan-sukhomlyn avatar ivan-sukhomlyn commented on August 17, 2024

The fix has been prepared and merged into Kubernetes master branch kubernetes/kubernetes#83446
It will be released with the 1.18 Kubernetes version

from cloud-provider-aws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.