Skip to content

Add gitlab-shell use proxy protocol for nginx-ingress

Hippo Lin requested to merge hippo/gitlab:add-use-proxy-protocol into master

Add a value for enable proxy protocol on gitlab-shell, default is disabled. If nginx-ingress using AWS ELB and enabled proxy protocol, can setting gitlab.gitlab-shell.nginxIngress.useProxyProtocol = true.

The following is an example of values:

nginx-ingress:
  enabled: true
  tcpExternalConfig: "true"
  controller:
    service:
      type: "LoadBalancer"
      externalTrafficPolicy: "Local"
      annotations:
        service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: "true"
        service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "3600"
        service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
        service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: '*'
    replicaCount: 2
    minAvailable: 1
    config:
      proxy-read-timeout: "3600"
      proxy-send-timeout: "3600"
      server-tokens: "false"
      use-proxy-protocol: "true"
gitlab:
  gitlab-shell:
    nginxIngress:
      useProxyProtocol: true

Merge request reports