We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 555c2b6 commit 27b4794Copy full SHA for 27b4794
midnight-core/templates/ingress.yaml
@@ -9,6 +9,7 @@ metadata:
9
{{- with .Values.ingress.annotations }}
10
{{- toYaml . | nindent 4 }}
11
{{- end }}
12
+ traefik.ingress.kubernetes.io/router.middlewares: {{ include "midnight-core.fullname" . }}-strip-prefix@kubernetescrd
13
spec:
14
{{- if .Values.ingress.className }}
15
ingressClassName: {{ .Values.ingress.className }}
midnight-core/templates/middleware.yaml
@@ -0,0 +1,10 @@
1
+apiVersion: traefik.containo.us/v1alpha1
2
+kind: Middleware
3
+metadata:
4
+ name: {{ include "midnight-core.fullname" . }}-strip-prefix
5
+ labels:
6
+ {{- include "midnight-core.labels" . | nindent 4 }}
7
+spec:
8
+ stripPrefix:
+ prefixes:
+ - /api/user
0 commit comments