Skip to content

Commit 27b4794

Browse files
committed
fix(midnight): change service paths
1 parent 555c2b6 commit 27b4794

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

midnight-core/templates/ingress.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ metadata:
99
{{- with .Values.ingress.annotations }}
1010
{{- toYaml . | nindent 4 }}
1111
{{- end }}
12+
traefik.ingress.kubernetes.io/router.middlewares: {{ include "midnight-core.fullname" . }}-strip-prefix@kubernetescrd
1213
spec:
1314
{{- if .Values.ingress.className }}
1415
ingressClassName: {{ .Values.ingress.className }}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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:
9+
prefixes:
10+
- /api/user

0 commit comments

Comments
 (0)