GithubHelp home page GithubHelp logo

Comments (8)

rosmo avatar rosmo commented on May 26, 2024

This seems to be coming from the API so I don't think it's an Autoneg issue. Also I don't believe we support the zones annotation. You have two types of backend services, global and regional (regional being used when you specify region in the annotation) and they come with various limitations with regards to load balancing modes.

from gke-autoneg-controller.

pburgisser avatar pburgisser commented on May 26, 2024

With or without the region, I have the same issue. Even if I use the given parameters in the README.md from this repo, I have the same error about balancing :( I don't understand where the issue is.
Thanks !

from gke-autoneg-controller.

rosmo avatar rosmo commented on May 26, 2024

Can you show me what kind of load balancer was set up and how?

from gke-autoneg-controller.

pburgisser avatar pburgisser commented on May 26, 2024

I deployed the LB using this example (I used the exact same code):
https://github.com/terraform-google-modules/terraform-google-lb-http/tree/v7.0.0/modules/dynamic_backends

from gke-autoneg-controller.

rosmo avatar rosmo commented on May 26, 2024

Can you try this annotation:

  controller.autoneg.dev/neg: '{"backend_services":{"80":[{"name":"gke-development-ingress-backend-web"],"rate":100}}'

from gke-autoneg-controller.

pburgisser avatar pburgisser commented on May 26, 2024

oh my bad, I used that example: https://github.com/terraform-google-modules/terraform-google-lb-http/tree/v7.0.0/examples/dynamic-backend.
Will try your advice, thanks

from gke-autoneg-controller.

pburgisser avatar pburgisser commented on May 26, 2024

Still the same issue :(

Events:
  Type     Reason        Age                   From                Message
  ----     ------        ----                  ----                -------
  Normal   Sync          13m                   autoneg-controller  Synced NEGs for "traefik/traefik" as backends to backend service "gke-development-ingress-backend-default" (port 80)
  Normal   Create        13m (x5 over 34m)     neg-controller      Created NEG "k8s1-c278397d-traefik-traefik-80-230eaa9a" for traefik/traefik-k8s1-c278397d-traefik-traefik-80-230eaa9a--web/80-web-GCE_VM_IP_PORT-L7 in "us-central1-b".
  Normal   Create        13m (x5 over 34m)     neg-controller      Created NEG "k8s1-c278397d-traefik-traefik-80-230eaa9a" for traefik/traefik-k8s1-c278397d-traefik-traefik-80-230eaa9a--web/80-web-GCE_VM_IP_PORT-L7 in "us-central1-c".
  Normal   Attach        13m (x5 over 34m)     neg-controller      Attach 1 network endpoint(s) (NEG "k8s1-c278397d-traefik-traefik-80-230eaa9a" in zone "us-central1-b")
  Warning  BackendError  2m51s (x10 over 13m)  autoneg-controller  googleapi: Error 400: Invalid value for field 'resource.backends[0]': '{  "resourceGroup": "https://www.googleapis.com/compute/v1/projects/xxxx/zones/us-cen...'. CONNECTION balancing mode is not supported for protocol HTTPS, invalid

Here is the annotations:

metadata:
  annotations:
    cloud.google.com/neg: '{"exposed_ports": {"80":{}}}'
    cloud.google.com/neg-status: '{"network_endpoint_groups":{"80":"k8s1-c278397d-traefik-traefik-80-230eaa9a"},"zones":["us-central1-b","us-central1-c"]}'
    controller.autoneg.dev/neg: '{"backend_services":{"80":[{"name":"gke-development-ingress-backend-default","rate":100}]}}'
    controller.autoneg.dev/neg-status: '{"backend_services":{"80":{"gke-development-ingress-backend-default":{"name":"gke-development-ingress-backend-default"}}},"network_endpoint_groups":null,"zones":null}'

Also, am I supposed to see something appearing on loadbalancer ?

from gke-autoneg-controller.

rosmo avatar rosmo commented on May 26, 2024

Instead of rate, use max_rate_per_endpoint.

from gke-autoneg-controller.

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.