diff --git a/charts/kubedash/templates/ingress.yaml b/charts/kubedash/templates/ingress.yaml index f1cc21b..71ed727 100644 --- a/charts/kubedash/templates/ingress.yaml +++ b/charts/kubedash/templates/ingress.yaml @@ -17,20 +17,6 @@ metadata: nginx.ingress.kubernetes.io/whitelist-source-range: "{{ $ip }}{{ if ne $index $last }}, {{ end }}" {{- end }} {{- end }} - nginx.ingress.kubernetes.io/proxy-body-size: 10m - nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" - nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" - nginx.ingress.kubernetes.io/server-snippets: | - location / { - proxy_set_header Upgrade $http_upgrade; - proxy_http_version 1.1; - proxy_set_header X-Forwarded-Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-For $remote_addr; - proxy_set_header Host $host; - proxy_set_header Connection "upgrade"; - proxy_cache_bypass $http_upgrade; - } {{- if .Values.ingress.tls.certManager.enabled }} cert-manager.io/cluster-issuer: "{{ .Values.ingress.tls.certManager.clusterIssuer }}" {{- end }} diff --git a/charts/kubedash/values.yaml b/charts/kubedash/values.yaml index 2d31318..e07e059 100644 --- a/charts/kubedash/values.yaml +++ b/charts/kubedash/values.yaml @@ -141,6 +141,19 @@ ingress: # -- Extra annotation to the Ingress object annotations: nginx.ingress.kubernetes.io/proxy-body-size: "10m" + nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" + nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" + nginx.ingress.kubernetes.io/server-snippets: | + location / { + proxy_set_header Upgrade $http_upgrade; + proxy_http_version 1.1; + proxy_set_header X-Forwarded-Host $http_host; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header Host $host; + proxy_set_header Connection "upgrade"; + proxy_cache_bypass $http_upgrade; + } tls: # -- Enable tls on Ingress object enabled: true