Adjustments

This commit is contained in:
mr
2025-03-27 13:04:29 +01:00
parent 1ef92e5975
commit 4ef9bb399f
30 changed files with 68 additions and 299 deletions

View File

@@ -10,7 +10,6 @@ spec:
selector:
matchLabels:
app: oc-auth
strategy: {}
template:
metadata:
labels:
@@ -47,9 +46,9 @@ spec:
protocol: TCP
resources:
limits:
cpu: "{{ .Values.ocFront.resources.limits.cpu }}"
memory: "{{ .Values.ocFront.resources.limits.memory }}"
cpu: "{{ .Values.ocAuth.resources.limits.cpu }}"
memory: "{{ .Values.ocAuth.resources.limits.memory }}"
requests:
cpu: "{{ .Values.ocFront.resources.requests.cpu }}"
memory: "{{ .Values.ocFront.resources.requests.memory }}"
cpu: "{{ .Values.ocAuth.resources.requests.cpu }}"
memory: "{{ .Values.ocAuth.resources.requests.memory }}"
{{- end }}

View File

@@ -8,16 +8,16 @@ spec:
- web
routes:
- kind: Rule
match: Host(`{{ .Values.host }}`) && PathPrefix(`/auth`)
match: Host(`{{ .Values.host }}`) && PathPrefix(`/auth`)
priority: 10
services:
- kind: Service
name: oc-auth-svc
port: 8094
port: 8080
middlewares:
{{- if index .Values.ocAuth.enableTraefikProxyIntegration }}
- name: forward-auth
{{- end }}
#{{- if index .Values.ocAuth.enableTraefikProxyIntegration }}
#- name: forward-auth
#{{- end }}
- name: strip-auth-prefix
---
apiVersion: traefik.io/v1alpha1
@@ -25,7 +25,7 @@ kind: Middleware
metadata:
name: strip-auth-prefix
spec:
stripPrefix:
prefixes:
- "/auth"
replacePathRegex:
regex: ^/auth(.*)
replacement: /oc$1
{{- end }}

View File

@@ -8,7 +8,7 @@ metadata:
spec:
ports:
- name: http
port: 8094
port: 8080
protocol: TCP
targetPort: 8080
selector: