https://rancher.com/ logo
Title
r

ripe-queen-73614

10/07/2022, 10:36 AM
I deployed Kubernetes rke2, and used Kube-vip as the virtual IP provider. Now I have a Kubernetes cluster and when creating an ingress object, their addresses are the addresses of my 2 worker nodes. Is it possible to assign a virtual IP to distribute traffic to my worker nodes instead?
c

cold-ambulance-6848

10/07/2022, 10:48 AM
Presumably you need to create a loadbalancer service?
r

ripe-queen-73614

10/07/2022, 11:00 AM
ok, thanks @cold-ambulance-6848
c

creamy-pencil-82913

10/07/2022, 4:34 PM
Ingresses have their addresses assigned by the Ingress controller, which runs as a daemonset by default on RKE2, so you will see the node IPs there. If you want things to have a virtual IP from the load-balancer controller, then you need to be using Services of type: LoadBalancer, instead of Ingresses.
Ingress and Service do completely different things.