Comments (7)
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.
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.
Does this answer your question?
from terraform-hcloud-kube-hetzner.
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.
@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.
@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.
Closing for now, as this is just a config issue.
from terraform-hcloud-kube-hetzner.
Related Issues (20)
- [Bug]: nginx stuck deploying when not scheduling on control-plane
- Upgrading a clean cluster 1.27 to 1.28 - one of the nodes stuck in emergency mode HOT 1
- Update `cluster-autoscaler` version HOT 4
- Restore hangs waiting for load balancer ip HOT 2
- Allow specifying an existing Floating IP HOT 3
- [Bug]: Disabling SELINUX option is not working HOT 3
- Solution for multiple networks for nodes
- [Bug]: image pull backoff error with latest: hetznercloud/hcloud-csi-driver:v2.7.0 HOT 2
- On GitLab, waiting for MicroOS to become available HOT 5
- [Bug]: /etc/cloud/rename_interface.sh: No such file or directory HOT 7
- [Bug]: helm releases keep installing after disabling them in kube.tf HOT 3
- [Bug]: Terraform does not deploy well HOT 2
- Allow patching default Helm values HOT 1
- Unknown connection HOT 1
- [Bug]: Scaling to 0 Second CP Nodepool HOT 1
- [Feature Request]: Make kubeconfig_server_address configurable HOT 1
- [Bug]: Traefik fails after automatic self-restart because of missing CRD HOT 2
- [Bug]: the default `traefik_redirect_to_https=true` does not seem to work any longer after traefik updated to 3.0.x
- [Bug]: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-hcloud-kube-hetzner.