update keycloak ingress configuration to use regex for auth-redirect and modify pathType

main
Ishrath Ahamed 1 day ago
parent f0316b9f51
commit ef975228cb

@ -1,17 +1,17 @@
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: auth-redirect name: auth-redirect-simple
annotations: annotations:
nginx.ingress.kubernetes.io/rewrite-target: /realms/$2 nginx.ingress.kubernetes.io/rewrite-target: /realms/$1
nginx.ingress.kubernetes.io/use-regex: "true" nginx.ingress.kubernetes.io/use-regex: "true"
spec: spec:
rules: rules:
- host: quat.cloudsolutions.lk - host: quat.cloudsolutions.lk
http: http:
paths: paths:
- path: /auth/realms(/|$)(.*) - path: /auth/realms/(.*)
pathType: Prefix pathType: ImplementationSpecific
backend: backend:
service: service:
name: csi-iam-service name: csi-iam-service

Loading…
Cancel
Save