https://rancher.com/ logo
Title
l

limited-motherboard-41807

10/26/2022, 1:47 PM
Hello folks, I'm confused with the default installation of nginx ingress withe RKE2. I would have thought it should be running as a DaemonSet and exposed as a Service of type NodePort on the port 80. It is effectively running as a DaemonSet but it's only a Service of type ClusterIP. And still I'm able to join my ingress and other services configured as type Ingress on port 80 & 443 on all nodes of my cluster. I think I'm missing something basic here 😞 Does what I'm saying makes sense or not at all?
c

creamy-pencil-82913

10/26/2022, 3:24 PM
it’s a daemonset with hostport 80 and 443, so you can reach the ingress on any of your nodes at 80/443. You can also reach it via the service within the cluster, if you want.
you’d see the hostports if you inspected the pods
l

limited-motherboard-41807

10/26/2022, 3:25 PM
Aaaah thanks 🙂
Didn't know that Daemonset could configure hostPort directly
c

creamy-pencil-82913

10/26/2022, 3:26 PM
they’re just pods, you can do anything you can do with a normal pod
l

limited-motherboard-41807

10/26/2022, 3:27 PM
Didn't know this exist with pod as well to be honest 😅
I learned something, thanks!
p

proud-ram-62490

10/26/2022, 6:53 PM
How would someone recommend routing data to these services then? You obviously don’t want to just point an A Record to a single specific host in case that host goes down for any reason.
c

creamy-pencil-82913

10/26/2022, 6:54 PM
cnames are an option… or external load-balancers…
if you want to use an in-cluster load-balancer, you can deploy a load-balancer controller and then reconfigure the chart to use LoadBalancer service instead of just ClusterIP
but these are all kind of up to the administrator to decide based on what they have available in their environment
p

proud-ram-62490

10/26/2022, 6:56 PM
gotcha, I think I’d prefer to do LB on the cluster - so would I just remove the current install of NGINX and reinstall with it as a LB?
c

creamy-pencil-82913

10/26/2022, 6:56 PM
no. ingress-nginx is an ingress controller, not a load-balancer controller
they do different things
l

limited-motherboard-41807

10/26/2022, 6:57 PM
We do external load balancer indeed
c

creamy-pencil-82913

10/26/2022, 6:57 PM
load-balancer controllers would be things like kube-vip, metallb, or servicelb
p

proud-ram-62490

10/26/2022, 6:59 PM
Understood.