fix: remove hardcoded rewrite-target from ingress template

This commit is contained in:
2026-09-03 13:54:27 +07:00
parent 82f799c19b
commit a30cbcadd9
+6 -2
View File
@@ -3,8 +3,12 @@ apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ .Release.Name }} name: {{ .Release.Name }}
labels:
app: {{ .Release.Name }}
{{- with .Values.ingress.annotations }}
annotations: annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2 {{- toYaml . | nindent 4 }}
{{- end }}
spec: spec:
ingressClassName: {{ .Values.ingress.className }} ingressClassName: {{ .Values.ingress.className }}
rules: rules:
@@ -12,7 +16,7 @@ spec:
http: http:
paths: paths:
- path: {{ .Values.ingress.path }} - path: {{ .Values.ingress.path }}
pathType: ImplementationSpecific pathType: {{ .Values.ingress.pathType | default "Prefix" }}
backend: backend:
service: service:
name: {{ .Release.Name }} name: {{ .Release.Name }}