Rancher HA Install - how to access Rancher UI?



I’m installing Rancher 2.0 in HA mode as documented on the Rancher site on a home server. I’ve completed the setup entirely, though one thing I am confused about is how to access the Rancher UI?

If I try to hit the cluster IP then I cannot access it. I’ve tried to add the NodePort option to the helm install command using --set but it doesn’t seem to work. I also tried deploying a NodePort service:

apiVersion: v1
kind: Service
name: rancher-nodeport
type: NodePort
app: rancher

  • name: rancher
    protocol: TCP
    nodePort: 30001
    port: 80
    targetPort: 80
  • name: rancher-ssl
    protocol: TCP
    nodePort: 30002
    port: 443
    targetPort: 443

The service runs but I can’t connect to the UI.

I’m trying to avoid using the nginx ingress because eventually I want to set up traefik.

Any help would be very appreciated!


for anyone interested, I managed to deploy a nodeport service to redirect port 80 to 30001 and port 443 to 30443. This works!