fix: remove hardcoded rewrite-target from ingress template
This commit is contained in:
@@ -3,8 +3,12 @@ apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
labels:
|
||||
app: {{ .Release.Name }}
|
||||
{{- with .Values.ingress.annotations }}
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/rewrite-target: /$2
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
ingressClassName: {{ .Values.ingress.className }}
|
||||
rules:
|
||||
@@ -12,7 +16,7 @@ spec:
|
||||
http:
|
||||
paths:
|
||||
- path: {{ .Values.ingress.path }}
|
||||
pathType: ImplementationSpecific
|
||||
pathType: {{ .Values.ingress.pathType | default "Prefix" }}
|
||||
backend:
|
||||
service:
|
||||
name: {{ .Release.Name }}
|
||||
|
||||
Reference in New Issue
Block a user