Giter VIP home page Giter VIP logo

Comments (7)

WebSpider avatar WebSpider commented on July 2, 2024 1

The two loadbalancers serve a different purpose:

  • The k3s loadbalancer is the loadbalancer that's used for the control-plane, so you, as an admin can talk to k3s
  • The ct-k3s-traefik loadbalancer is the loadbalancer that's used for ingress, so the enduser can visit any website you make available via k3s

You could disable the k3s loadbalancer by setting this in your kube.tf:

  use_control_plane_lb = false

from terraform-hcloud-kube-hetzner.

InfernoCraft avatar InfernoCraft commented on July 2, 2024 1

Hi,
sorry for the late response.
First of all, the k3s load balancer is the one from traefik, which i manualy added via the values of the traefik install under the annotations. The ct-k3s-traefik load balancer is getting created by the library with the load_balancer_type. The problem is that the load balancer created by the library does not have any services and is not attached to any servers. And so it doesn't serve any purpose exept it wastes money.
So I don't know why there is a mandatory load balancer created for nothing, because even if i disable the manual load balancer i added, the load balancer created by the library still isn't doing anything. Maybe it isn't working because I currently only have one control plane node but i don't know.

Thank you for your time and help.

from terraform-hcloud-kube-hetzner.

WebSpider avatar WebSpider commented on July 2, 2024

Does this answer your question?

from terraform-hcloud-kube-hetzner.

WebSpider avatar WebSpider commented on July 2, 2024

Ah, I misunderstood the problem here.

Interesting. Can you see if:

1- The load-balancer ct-k3s-traefik has any labels attached to them?
2- Is your cluster_name by any chance ct-k3s ?

If your loadbalancer has the labels provisioner, engine and cluster attached, and no other labels, you could try changing the names to match

...
traefik_values = <<EOT
...
  annotations:
    "load-balancer.hetzner.cloud/name": "ct-k3s-traefik"

This should make the cluster think it needs to use a loadbalancer with that name, instead of trying to provision one with the k3s name.

It seems that a loadbalancer for ingresses is always made at current, when your ingress is not set to "none".
I think that setting enable_klipper_metal_lb = "true" should also disable that loadbalancer. YMMV, I'm an nginx user myself 🤣

from terraform-hcloud-kube-hetzner.

mysticaltech avatar mysticaltech commented on July 2, 2024

@InfernoCraft Your problem comes from editing the traefik helm value manually, try using the same name for the lb as the one you see created.

from terraform-hcloud-kube-hetzner.

mysticaltech avatar mysticaltech commented on July 2, 2024

@InfernoCraft Your github access token may have leaked, in the above kube.tf, I deleted it, but if is was really the original one, better regenerated it.

from terraform-hcloud-kube-hetzner.

mysticaltech avatar mysticaltech commented on July 2, 2024

Closing for now, as this is just a config issue.

from terraform-hcloud-kube-hetzner.

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.