diff --git a/bitnami/keycloak/Chart.yaml b/bitnami/keycloak/Chart.yaml index 7b63ed8e28..a3c46f794b 100644 --- a/bitnami/keycloak/Chart.yaml +++ b/bitnami/keycloak/Chart.yaml @@ -33,4 +33,4 @@ maintainers: name: keycloak sources: - https://github.com/bitnami/charts/tree/main/bitnami/keycloak -version: 17.2.1 +version: 17.3.0 diff --git a/bitnami/keycloak/README.md b/bitnami/keycloak/README.md index afadd9f5eb..f7f4fe41f9 100644 --- a/bitnami/keycloak/README.md +++ b/bitnami/keycloak/README.md @@ -265,6 +265,7 @@ The command removes all the Kubernetes components associated with the chart and | `metrics.enabled` | Enable exposing Keycloak statistics | `false` | | `metrics.service.ports.http` | Metrics service HTTP port | `8080` | | `metrics.service.annotations` | Annotations for enabling prometheus to access the metrics endpoints | `{}` | +| `metrics.service.extraPorts` | Add additional ports to the keycloak metrics service (i.e. admin port 9000) | `[]` | | `metrics.serviceMonitor.enabled` | Create ServiceMonitor Resource for scraping metrics using PrometheusOperator | `false` | | `metrics.serviceMonitor.port` | Metrics service HTTP port | `http` | | `metrics.serviceMonitor.endpoints` | The endpoint configuration of the ServiceMonitor. Path is mandatory. Interval, timeout and labellings can be overwritten. | `[]` | diff --git a/bitnami/keycloak/templates/metrics-service.yaml b/bitnami/keycloak/templates/metrics-service.yaml index 6fca918c6d..d042cb4013 100644 --- a/bitnami/keycloak/templates/metrics-service.yaml +++ b/bitnami/keycloak/templates/metrics-service.yaml @@ -22,6 +22,9 @@ spec: port: {{ coalesce .Values.metrics.service.ports.http .Values.metrics.service.port }} protocol: TCP targetPort: http + {{- if .Values.metrics.service.extraPorts }} + {{- include "common.tplvalues.render" (dict "value" .Values.metrics.service.extraPorts "context" $) | nindent 4 }} + {{- end }} {{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }} selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }} app.kubernetes.io/component: keycloak diff --git a/bitnami/keycloak/values.yaml b/bitnami/keycloak/values.yaml index ba2bb10d5f..6ce0d8ae0d 100644 --- a/bitnami/keycloak/values.yaml +++ b/bitnami/keycloak/values.yaml @@ -781,6 +781,9 @@ metrics: annotations: prometheus.io/scrape: "true" prometheus.io/port: "{{ .Values.metrics.service.ports.http }}" + ## @param metrics.service.extraPorts [array] Add additional ports to the keycloak metrics service (i.e. admin port 9000) + ## + extraPorts: [] ## Prometheus Operator ServiceMonitor configuration ## serviceMonitor: