Coder Social home page Coder Social logo

Comments (5)

Spazzy757 avatar Spazzy757 commented on August 16, 2024

Just a note this will also allow to set multiple egress IP's that will help with large volumes of egress traffic and how the port/ip mapping works

from terraform-kubestack.

Spazzy757 avatar Spazzy757 commented on August 16, 2024

Seems the issue with passing in the nat_ips is that they depend on the subnet that the module creates.

from terraform-kubestack.

Spazzy757 avatar Spazzy757 commented on August 16, 2024

So another update on this, setting AUTO_ONLY also auto-scales IP's so based on how many nodes you have in your cluster it starts spinning up new IP addresses

So after some playing around I fell on this fix, it allows you to specify how many Egress IP addresses you want and attaches them to the Nat gateway. Any thoughts on how to make this backwards compatible for users?

from terraform-kubestack.

pst avatar pst commented on August 16, 2024

I'd try a conditional on the length of the compute address resource, and if that's zero set nat_ips = null.

Similar to this: https://github.com/kbst/terraform-kubestack/blob/eksnodepools/aws/cluster/node-pool/vpc.tf#L9

from terraform-kubestack.

Spazzy757 avatar Spazzy757 commented on August 16, 2024

Okay awesome! 👍 I updated to be backwards compatible, I'll open up a PR for the changes so you can check it out

from terraform-kubestack.

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.