Skip to content

Commit

Permalink
feat: haproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl committed Nov 15, 2024
1 parent 8b8d2eb commit 7ceedc5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions charts/keep/templates/ingress-haproxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ metadata:

# Backend configurations for path rewrites
haproxy-ingress.github.io/config-backend: |
acl path_v2 path_beg /v2/
acl path_ws path_beg /websocket/
http-request set-path %[path,regsub(^/v2/,/)] if path_v2
http-request set-path %[path,regsub(^/websocket/,/)] if path_ws
acl path_v2 path_beg {{ .Values.global.ingress.backendPrefix }}/
acl path_ws path_beg {{ .Values.global.ingress.websocketPrefix }}/
http-request set-path %[path,regsub(^{{ .Values.global.ingress.backendPrefix }}/,/)] if path_v2
http-request set-path %[path,regsub(^{{ .Values.global.ingress.websocketPrefix }}/,/)] if path_ws
spec:
ingressClassName: haproxy
Expand All @@ -48,7 +48,7 @@ spec:
http:
paths:
{{- if $.Values.websocket.enabled }}
- path: "/websocket"
- path: {{ $.Values.global.ingress.websocketPrefix }}
pathType: Prefix
backend:
service:
Expand All @@ -57,7 +57,7 @@ spec:
number: {{ $.Values.websocket.service.port }}
{{- end }}
{{- if $.Values.backend.enabled }}
- path: "/v2"
- path: {{ $.Values.global.ingress.backendPrefix }}
pathType: Prefix
backend:
service:
Expand All @@ -77,7 +77,7 @@ spec:
- http:
paths:
{{- if $.Values.websocket.enabled }}
- path: "/websocket"
- path: {{ $.Values.global.ingress.websocketPrefix }}
pathType: Prefix
backend:
service:
Expand All @@ -86,7 +86,7 @@ spec:
number: {{ $.Values.websocket.service.port }}
{{- end }}
{{- if $.Values.backend.enabled }}
- path: "/v2"
- path: {{ $.Values.global.ingress.backendPrefix }}
pathType: Prefix
backend:
service:
Expand Down

0 comments on commit 7ceedc5

Please sign in to comment.