diff --git a/charts/keycloak/Chart.yaml b/charts/keycloak/Chart.yaml index a04ac9fbb84712b9293a06e4eff475c936db4698..51d26e2bcb75e424ee32cf271c4465fc8c7809c8 100644 --- a/charts/keycloak/Chart.yaml +++ b/charts/keycloak/Chart.yaml @@ -7,6 +7,6 @@ icon: https://www.keycloak.org/resources/images/keycloak_icon_512px.svg sources: - https://git.shivering-isles.com/shivering-isles/infrastructure-gitops - https://github.com/keycloak/keycloak -version: 0.4.5 +version: 0.5.0 # renovate: image=quay.io/keycloak/keycloak -appVersion: "19.0.3" +appVersion: "20.0.0" diff --git a/charts/keycloak/README.md b/charts/keycloak/README.md index d765e41c712d2102bc48b2d1357525027cfa9f6f..2d1f43abc242059659dcb856f5909b3f6eba1f37 100644 --- a/charts/keycloak/README.md +++ b/charts/keycloak/README.md @@ -1,6 +1,6 @@ # keycloak -   +   (Alpha) A Helm chart for Keycloak on Kubernetes @@ -15,6 +15,7 @@ | Key | Type | Default | Description | |-----|------|---------|-------------| +| adminIngress | object | `{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}` | Optional separate ingress endpoint when keycloak.adminHostname is used | | affinity | object | `{}` | | | autoscaling.enabled | bool | `false` | | | autoscaling.maxReplicas | int | `100` | | @@ -32,6 +33,7 @@ | ingress.hosts[0].paths[0].path | string | `"/"` | | | ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | | | ingress.tls | list | `[]` | | +| keycloak.adminHostname | string | `nil` | Optional Admin Hostname, see https://www.keycloak.org/server/hostname#_administration_console | | keycloak.database.password | string | `nil` | password of the database user | | keycloak.database.type | string | `"postgres"` | Type of the database, see `db` at https://www.keycloak.org/server/db#_configuring_a_database | | keycloak.database.url | string | `nil` | database URL, see `db-url` at https://www.keycloak.org/server/db#_configuring_a_database jdbc:postgresql://localhost/keycloak | diff --git a/charts/keycloak/templates/deployment.yaml b/charts/keycloak/templates/deployment.yaml index a06209c314276abb16e2804717bb0fa86c10200f..c08a32c30f6fcf976745ce4b5e4c2cafa97ac8ca 100644 --- a/charts/keycloak/templates/deployment.yaml +++ b/charts/keycloak/templates/deployment.yaml @@ -52,6 +52,10 @@ spec: - name: KC_METRICS_ENABLED value: "true" {{- end }} + {{- if .Values.keycloak.adminHostname }} + - name: KC_ADMIN_HOSTNAME + value: "{{ .Values.keycloak.adminHostname }}" + {{- end }} - name: KC_HOSTNAME value: "{{ required "Setting a hostname is required" .Values.keycloak.hostname }}" - name: JAVA_OPTS_APPEND diff --git a/charts/keycloak/templates/ingress.yaml b/charts/keycloak/templates/ingress.yaml index d2e79e396dc35a243ad6249da425cabb96d62c15..9ed76848dbcdafb603b3470d6f0c68632d48eeea 100644 --- a/charts/keycloak/templates/ingress.yaml +++ b/charts/keycloak/templates/ingress.yaml @@ -18,6 +18,7 @@ metadata: name: {{ $fullName }} labels: {{- include "keycloak.labels" . | nindent 4 }} + app.kubernetes.io/component: ingress {{- with .Values.ingress.annotations }} annotations: {{- toYaml . | nindent 4 }} diff --git a/charts/keycloak/values.yaml b/charts/keycloak/values.yaml index 88c5ae209fb35204cdd12f68a742a7a6d1255760..61cc2b9c4e964b55c51d806b9187b87d65a0dd7a 100644 --- a/charts/keycloak/values.yaml +++ b/charts/keycloak/values.yaml @@ -16,6 +16,8 @@ image: keycloak: # -- Hostname used for the keycloak installation hostname: keycloak.example.com + # -- Optional Admin Hostname, see https://www.keycloak.org/server/hostname#_administration_console + adminHostname: null database: # -- Type of the database, see `db` at https://www.keycloak.org/server/db#_configuring_a_database type: postgres @@ -78,6 +80,22 @@ ingress: # - secretName: chart-example-tls # hosts: # - chart-example.local +# -- Optional separate ingress endpoint when keycloak.adminHostname is used +adminIngress: + enabled: false + className: "" + annotations: {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + hosts: + - host: chart-example.local + paths: + - path: / + pathType: ImplementationSpecific + tls: [] + # - secretName: chart-example-tls + # hosts: + # - chart-example.local resources: limits: