feat: add annotations for NGINX ingress configuration in production values
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
03bb8c3cb3
commit
d2caeeec51
@ -14,6 +14,9 @@ metadata:
|
|||||||
app.kubernetes.io/name: {{ $ingress.name | quote }}
|
app.kubernetes.io/name: {{ $ingress.name | quote }}
|
||||||
app.kubernetes.io/managed-by: {{ $releaseIngress }}
|
app.kubernetes.io/managed-by: {{ $releaseIngress }}
|
||||||
app.kubernetes.io/instance: {{ $releaseName }}
|
app.kubernetes.io/instance: {{ $releaseName }}
|
||||||
|
{{- if $ingress.annotations }}
|
||||||
|
{{- toYaml $ingress.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- if $ingress.class }}
|
{{- if $ingress.class }}
|
||||||
ingressClassName: {{ $ingress.class }}
|
ingressClassName: {{ $ingress.class }}
|
||||||
|
|||||||
@ -45,6 +45,20 @@ frontend:
|
|||||||
name: mathmast-dot-com
|
name: mathmast-dot-com
|
||||||
kind: ClusterIssuer
|
kind: ClusterIssuer
|
||||||
name: freeleaps.mathmast.com-cert
|
name: freeleaps.mathmast.com-cert
|
||||||
|
annotations:
|
||||||
|
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;
|
||||||
|
}
|
||||||
configs:
|
configs:
|
||||||
tz: UTC
|
tz: UTC
|
||||||
frontendPort: 8080
|
frontendPort: 8080
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user