Skip to content

Enable the ability to set http/https Service ports

Julius Kvedaras requested to merge allow-custom-loadbalancer-ports into master

We have to have the ability to set the custom service ports. This will give us the ability to change the LoadBalancer service ports to custom ports.

Tested with the below values.yaml and seems to work without issue:

nginx-ingress:
  controller:
    service:
      ports:
        http: 8180
        https: 7443

kubectl get po

NAME                                                  READY   STATUS      RESTARTS   AGE
gitlab-cainjector-5479b5fb69-hrvls                    1/1     Running     23         33d
gitlab-cert-manager-5c88ccdf9b-9pbtw                  1/1     Running     4          33d
gitlab-gitaly-0                                       1/1     Running     0          18d
gitlab-gitlab-exporter-9d47f89c7-54s5c                1/1     Running     0          18d
gitlab-gitlab-runner-65b4dd74db-9cx6h                 1/1     Running     0          18d
gitlab-gitlab-shell-f78997c9b-tcj6t                   1/1     Running     0          18d
gitlab-gitlab-shell-f78997c9b-wtdmm                   1/1     Running     0          18d
gitlab-issuer.10-rqxqc                                0/1     Completed   0          13m
gitlab-migrations.10-8njzh                            0/1     Completed   0          13m
gitlab-minio-8685b7574c-lksgz                         1/1     Running     0          25d
gitlab-minio-create-buckets.10-49t2k                  0/1     Completed   0          13m
gitlab-nginx-ingress-controller-db8b7b795-26llv       1/1     Running     0          33d
gitlab-nginx-ingress-controller-db8b7b795-bg5n5       1/1     Running     0          33d
gitlab-nginx-ingress-controller-db8b7b795-gljcn       1/1     Running     0          33d
gitlab-nginx-ingress-default-backend-5c4b7cd5-l84t4   1/1     Running     0          33d
gitlab-nginx-ingress-default-backend-5c4b7cd5-m74rk   1/1     Running     0          33d
gitlab-postgresql-0                                   2/2     Running     1          25d
gitlab-prometheus-server-6bf857df4b-5trr7             2/2     Running     0          33d
gitlab-redis-master-0                                 2/2     Running     0          33d
gitlab-registry-69b7db65b8-4p6zq                      1/1     Running     0          25d
gitlab-registry-69b7db65b8-x6xq7                      1/1     Running     0          25d
gitlab-sidekiq-all-in-1-v1-cc87d454-74kcf             1/1     Running     0          18d
gitlab-task-runner-566b5fd5d4-wzr2t                   1/1     Running     0          18d
gitlab-webservice-5d57544cff-2gfcj                    2/2     Running     0          18d
gitlab-webservice-5d57544cff-q6p8j                    2/2     Running     0          12m

Services:

gitlab-nginx-ingress-controller           LoadBalancer   10.xx.x.xxx   35.xxx.xx.xxx   8180:30578/TCP,7443:32318/TCP,22:30459/TCP   33d

closes #2096 (closed)

Edited by Julius Kvedaras

Merge request reports