https://rancher.com/ logo
Title
m

mammoth-winter-72426

05/26/2023, 4:53 PM
Good morning everyone! I’m confused because I created 2 different Load balancer services in a namespace, 1 load balancer is for UDP and the other is for another protocol. But when I check to see what pods are running in the “Kube-System” namespace I can see the following: “svclb-service1UDP” “svclb-service2DifferentProtocol” “svclb-traefik” Now after a little research, I found K3s automatically comes with traefik load balancer along with the default Kubernetes load balancer. But why does K3s by default come with both? I think the answer is because traefik is an ingress component while K3s LB is just a default svclb….. I found using the traefik ingress just has more features and is specifically better for security purposes compared to the default K3s load balancer service. But are both using the cloud? I don’t think the K3s LB is….
c

creamy-pencil-82913

05/26/2023, 5:23 PM
traefik is not a load balancer. traefik is an ingress controller.
load balancers handle services with type=LoadBalancer
ingress controllers handle routing traffic (usually http requests) as configured by Ingress resources.
You should check the Kubernetes docs on Service vs Ingress to understand the difference better.
In this case, you’re seeing Traefik exposed via a LoadBalancer service.
Services are L3, Ingress are L7
m

mammoth-winter-72426

05/26/2023, 10:39 PM
Thankyou @creamy-pencil-82913 !! The ExecStart= should just be “k3s server” for the node that originally created the cluster while all nodes that join must have “k3s server —server —cluster-init +nodetoken” and same with agent except the cluster init obviously
c

creamy-pencil-82913

05/26/2023, 10:40 PM
no
the first node should have
--cluster-init
other servers that join should have
--server=<https://server>:xxx
m

mammoth-winter-72426

05/26/2023, 10:47 PM
Okay @creamy-pencil-82913 I’m going to make the ExecStart of the cluster creator node be ExecStart= K3s server —server —cluster-init
I’m sorry I mean just: K3s server —cluster-init
The agent nodes need the “K3s agent —server + token” @creamy-pencil-82913
c

creamy-pencil-82913

05/26/2023, 10:58 PM
correct
m

mammoth-winter-72426

05/26/2023, 11:00 PM
@creamy-pencil-82913 thankyou! That is all for today! Have a great weekend