mirror of
https://github.com/bitnami/charts.git
synced 2026-03-07 16:17:21 +08:00
[bitnami/keycloak] fix: add extraPorts to metrics service (#20569)
* Add extraPorts to metrics-service Signed-off-by: Ognian <Ognian@users.noreply.github.com> Signed-off-by: Ognian Tschakalov <ognian.tschakalov@ogi-it.com> * [bitnami/keycloak] fix: add extraPorts to metrics service Signed-off-by: Ognian Tschakalov <ognian.tschakalov@ogi-it.com> --------- Signed-off-by: Ognian <Ognian@users.noreply.github.com> Signed-off-by: Ognian Tschakalov <ognian.tschakalov@ogi-it.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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. | `[]` |
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user