feat: allow specifying custom annotations on ingress (#2725)

This allows users who don't use the nginx ingress controller to still
configure the built in ingress
This commit is contained in:
samczsun 2025-07-25 16:06:57 -07:00 committed by GitHub
parent 04f5ec856f
commit feafeae1eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View File

@ -10,6 +10,7 @@ metadata:
{{- if .Values.ingress.useOldClassAnnotation }}
kubernetes.io/ingress.class: {{ .Values.ingress_class | default "nginx" }}
{{- end }}
{{- if eq ( .Values.ingress_class | default "nginx" ) "nginx" }}
nginx.ingress.kubernetes.io/proxy-body-size: "0"
nginx.ingress.kubernetes.io/proxy-request-buffering: "off"
# for larger uploads to not timeout
@ -22,6 +23,10 @@ metadata:
{{- else }}
nginx.ingress.kubernetes.io/ssl-redirect: "false"
{{- end }}
{{- end }}
{{- range $key, $value := .Values.ingress.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
{{- if not .Values.ingress.useOldClassAnnotation }}

View File

@ -489,6 +489,14 @@ ingress:
# Optional: Uncomment to use your own cluster-issuer instead of default ACME https validation
# custom_cluster_issuer: custom_cluster_issuer-name
# Optional: Uncomment to apply custom annotations
# annotations:
# alb.ingress.kubernetes.io/scheme: internet-facing
# alb.ingress.kubernetes.io/target-type: ip
# alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS": 443}]'
# alb.ingress.kubernetes.io/certificate-arn: "certificate-arn"
ingress_class: nginx
# Optional: Front-end injected script