https://rancher.com/ logo
Title
r

rough-ocean-41843

10/11/2022, 7:56 PM
So I got nginx working in RKE2, but how do I find out if it was set up using nodeport, clusterIP or LoadBalancer without looking at the config?
c

creamy-pencil-82913

10/11/2022, 7:58 PM
look at the running cluster?
r

rough-ocean-41843

10/11/2022, 7:58 PM
ok
I guess what i'm trying to figure out is how to expose my ranchger/hello-world app through nginx.
c

creamy-pencil-82913

10/11/2022, 8:55 PM
You're intended to use an Ingress resource. You can check the ingress status after it's created to see how you can connect to it.
r

rough-ocean-41843

10/11/2022, 9:25 PM
I was able to browse to the IP it was located on and got a 404. But now when configuring my app for it, what do I use, nodeport, loadbalancer?
This is where i'm confused.
c

creamy-pencil-82913

10/11/2022, 9:27 PM
For the workload that will go behind the ingress?
r

rough-ocean-41843

10/11/2022, 9:27 PM
yes
c

creamy-pencil-82913

10/11/2022, 9:28 PM
Use whatever you want, it doesn’t matter. I would probably just use a clusterip service since all the traffic is going to go through the ingress. There’s no reason to expose it outside the cluster at all if you’re going through the ingress.
r

rough-ocean-41843

10/11/2022, 9:28 PM
ok
ok I figured it out. thank you