diff --git a/charts/keycloakx/README.md b/charts/keycloakx/README.md index 00b06ca0..4542bdba 100644 --- a/charts/keycloakx/README.md +++ b/charts/keycloakx/README.md @@ -136,6 +136,9 @@ The following table lists the configurable parameters of the Keycloak-X chart an | `ingress.rules[0].paths` | Paths for the Ingress rule | see below | | `ingress.rules[0].paths[0].path` | Path for the Ingress rule | `/` | | `ingress.rules[0].paths[0].pathType` | Path Type for the Ingress rule | `Prefix` | +| `ingress.rules[0].paths[0].backendOverride` | Overrides for the backend section of the path. | null | +| `ingress.rules[0].paths[0].backendOverride.name` | Name of the backend service for this path | null | +| `ingress.rules[0].paths[0].backendOverride.port` | Port of the backend service for this path | null | | `ingress.servicePort` | The Service port targeted by the Ingress | `http` | | `ingress.annotations` | Ingress annotations | `{}` | | `ingress.ingressClassName` | The name of the Ingress Class associated with the ingress | `""` | diff --git a/charts/keycloakx/templates/ingress.yaml b/charts/keycloakx/templates/ingress.yaml index ccc94f7c..6ee437b5 100644 --- a/charts/keycloakx/templates/ingress.yaml +++ b/charts/keycloakx/templates/ingress.yaml @@ -43,9 +43,15 @@ spec: pathType: {{ .pathType }} backend: service: + {{- if .backendOverride }} + name: {{ .backendOverride.name }} + port: + name: {{ .backendOverride.port }} + {{ else }} name: {{ include "keycloak.fullname" $ }}-http port: name: {{ $ingress.servicePort }} + {{- end}} {{- end }} {{- end }} {{- if $ingress.console.enabled }} diff --git a/charts/keycloakx/values.schema.json b/charts/keycloakx/values.schema.json index 8b355b64..14e336fe 100644 --- a/charts/keycloakx/values.schema.json +++ b/charts/keycloakx/values.schema.json @@ -123,6 +123,17 @@ }, "pathType": { "type": "string" + }, + "backendOverride": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "port": { + "type": "string" + } + } } } }