Git Product home page Git Product logo

Comments (4)

aaron-lane avatar aaron-lane commented on July 21, 2024 1

I am not familiar with the issue that you're describing but I have not worked extensively with this module. If you think there is work needed on the module after hashicorp/terraform-provider-google#3937 is addressed then please do open a new issue here.

I'm closing this issue since you've managed to answer your own question. 😄

from terraform-google-lb-http.

mkozjak avatar mkozjak commented on July 21, 2024

Any info on this one?

from terraform-google-lb-http.

aaron-lane avatar aaron-lane commented on July 21, 2024

Hi @hawksight and @mkozjak. Thank you for your interest in the project! I apologize for the extreme delay in responding.

You can specify multiple backend objects for each index in the backends input, but each backend object can only specify one group. I think it should be possible to dynamically build the backends input using for expressions.

from terraform-google-lb-http.

hawksight avatar hawksight commented on July 21, 2024

Thanks @aaron-lane - I've been using this module as the basis of my own for a long time.
Being able to loop through the backends so that the number of them is not longer hard coded is now possible for creation using a dynamic block.

Also to answer my own original question - yes this module will support multi zone clusters and cluster with multiple node pool. You just have to ensure you get the complete list of instance_groups in order to populate the group value of the backends input of this module.

The same limitation seems to apply that you will need to know up front how many instance_groups your going to have. In reality I find I do know as we are fairly static in the group respect. Your mileage may vary.

I just checked through this module's recent code for your 0.12 TF support where you use a dynamic block here similar to what I have in my own module

  dynamic "backend" {
    for_each = var.backend_group_list
    content {
      group = backend.value
      // adding null values otherwise reapplication fails
      balancing_mode               = null
      capacity_scaler              = null
      description                  = null
      max_connections              = null
      max_connections_per_instance = null
      max_rate                     = null
      max_rate_per_instance        = null
      max_utilization              = null
    }
  }

Where backend_group_list = data.google_container_cluster.information.instance_group_urls.
I set null here so that the default apply without having to know them.

Have you seen any problems updating load balancers after they are initially built? I find my code currently works to build, but tf apply on a plan once the backend_service resources are built comes back with errors. I've got an issue open here but wondered if you might have come across the errors I've seen when updating the module?

from terraform-google-lb-http.

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.