Rancher HA and external LB on same cluster

Hi,

Is it possible to have rancher on HA setup listening on different ports than 80/443 so i can use those on external LB on same nodes (nginx, haproxy) or having rancher to be using NodePorts instead?

The idea is to have LB and Rancher together on same nodes.

I checked Helm chart options but didn’t see options to change these.

Thanks and regards,
Ali Nebi

You could create multiple ingresses to route DNS names to various services on port 80:

Weve got nginx.k8s.mydomain.com, jenkins.k8s.mydomain.com etc. all pointed at the loadbalancer.

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: jenkins-prod
  namespace: k8s-ci
spec:
  rules:
  - host: jenkins.k8s.mydomain.com
    http:
      paths:
      - backend:
          serviceName: jenkins
          servicePort: 8080
        path: /
  tls:
  - hosts:
    - jenkins.k8s.mydomain.com
    secretName: k8s.mydomain.com.tls

The HA installation uses the ingress controller of the cluster you’re installing on and does not directly publish any ports.

Thanks guys, I will do more tests :slight_smile:

Regards,
Ali