Git Product home page Git Product logo

Comments (11)

morgante avatar morgante commented on July 21, 2024 1

No worries! You should be able to use the Kubernetes resources directly (the GKE controller handles creating the GCP resources for you).

from terraform-google-lb-http.

morgante avatar morgante commented on July 21, 2024 1

Got it, for that case you might want to look at autoneg: https://github.com/GoogleCloudPlatform/gke-autoneg-controller

from terraform-google-lb-http.

Dev25 avatar Dev25 commented on July 21, 2024 1

You could this today via standalone NEGs + this module with some tweaks (support max_*_per_endpoint backend group vars) + using the NEG datasource

I do have a large/breaking PR that includes NEG support #57 which includes an example of doing that.

You could make a smaller PR that just includes the minimum changes (those backend vars) to support NEGs

from terraform-google-lb-http.

Dev25 avatar Dev25 commented on July 21, 2024 1

Yes that would be correct @naseemkullah , once you create the NEG service inside GKE you can figure out the compute engine NEG name (there is a cloud.google.com/neg-status annotation on the kubernetes service) and use that in TF/this module.

from terraform-google-lb-http.

morgante avatar morgante commented on July 21, 2024

@naseemkullah As the linked doc explains, GKE load balancers can (and should) be created using Kubernetes objects.

Is there a specific ask you have not accommodated by the kubectl tutorial?

from terraform-google-lb-http.

naseemkullah avatar naseemkullah commented on July 21, 2024

Thanks @morgante, I am new to GCLB (used regional LB fronted nginx-ingress until now) and as my org is working on distributing services globally we want to use the GCLB.

Terraform is what we use to deploy GCP resources so I thought it would have to be created via TF.
My mistake!

from terraform-google-lb-http.

naseemkullah avatar naseemkullah commented on July 21, 2024

Great, thanks! That saved me a lot of messing around. :)

from terraform-google-lb-http.

naseemkullah avatar naseemkullah commented on July 21, 2024

@morgante My issue is I want a multi cluster ingress defined declaratively, is this possible without using Terraform?

kubernetes/ingress-gce#794

from terraform-google-lb-http.

naseemkullah avatar naseemkullah commented on July 21, 2024

Got it, for that case you might want to look at autoneg: https://github.com/GoogleCloudPlatform/gke-autoneg-controller

This looks really interesting @morgante

from terraform-google-lb-http.

naseemkullah avatar naseemkullah commented on July 21, 2024

You could this today via standalone NEGs + this module with some tweaks (support max_*_per_endpoint backend group vars) + using the NEG datasource

I do have a large/breaking PR that includes NEG support #57 which includes an example of doing that.

You could make a smaller PR that just includes the minimum changes (those backend vars) to support NEGs

That's excellent @Dev25

May I ask, once your PR goes through could you please confirm if this is the correct workflow:

  1. Use TF to deploy GKE as well as this module to deploy the LB with backend services
  2. Use whatever method to deploy your app to GKE, including the standalone NEG annotated service
  3. Go back to TF and use it to configure this module, with the new standalone NEGs as datasource to be added as NEGS to the backend service created in step 1

from terraform-google-lb-http.

naseemkullah avatar naseemkullah commented on July 21, 2024

Thanks for clarifying, I look forward to your PR being merged!

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.