feat: add annotations for NGINX ingress configuration in production values

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-03-07 16:13:12 +08:00
parent 03bb8c3cb3
commit d2caeeec51
2 changed files with 17 additions and 0 deletions

View File

@ -14,6 +14,9 @@ metadata:
app.kubernetes.io/name: {{ $ingress.name | quote }}
app.kubernetes.io/managed-by: {{ $releaseIngress }}
app.kubernetes.io/instance: {{ $releaseName }}
{{- if $ingress.annotations }}
{{- toYaml $ingress.annotations | nindent 4 }}
{{- end }}
spec:
{{- if $ingress.class }}
ingressClassName: {{ $ingress.class }}

View File

@ -45,6 +45,20 @@ frontend:
name: mathmast-dot-com
kind: ClusterIssuer
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:
tz: UTC
frontendPort: 8080