[bitnami/keycloak] switch to default keycloak port 8080, while scraping metrics (#10976)

* switch to default keycloak port 8080, while scraping metrics

Signed-off-by: Mark Nesterovych <m.nesterovych@kontakt.io>
This commit is contained in:
Mark Nesterovych
2022-07-15 12:23:27 +02:00
committed by GitHub
parent 8906a81c5c
commit 8b90600a62
5 changed files with 6 additions and 6 deletions

View File

@@ -26,4 +26,4 @@ name: keycloak
sources:
- https://github.com/bitnami/bitnami-docker-keycloak
- https://github.com/keycloak/keycloak
version: 9.4.1
version: 9.4.2

View File

@@ -247,7 +247,7 @@ The command removes all the Kubernetes components associated with the chart and
| Name | Description | Value |
| ------------------------------------------ | ------------------------------------------------------------------------------------- | ------- |
| `metrics.enabled` | Enable exposing Keycloak statistics | `false` |
| `metrics.service.ports.http` | Metrics service HTTP port | `9990` |
| `metrics.service.ports.http` | Metrics service HTTP port | `8080` |
| `metrics.service.annotations` | Annotations for enabling prometheus to access the metrics endpoints | `{}` |
| `metrics.serviceMonitor.enabled` | Create ServiceMonitor Resource for scraping metrics using PrometheusOperator | `false` |
| `metrics.serviceMonitor.namespace` | Namespace which Prometheus is running in | `""` |

View File

@@ -21,10 +21,10 @@ metadata:
spec:
type: ClusterIP
ports:
- name: http-management
- name: http
port: {{ coalesce .Values.metrics.service.ports.http .Values.metrics.service.port }}
protocol: TCP
targetPort: http-management
targetPort: http
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
app.kubernetes.io/component: keycloak
{{- end }}

View File

@@ -20,7 +20,7 @@ spec:
jobLabel: {{ .Values.metrics.serviceMonitor.jobLabel }}
{{- end }}
endpoints:
- port: http-management
- port: http
{{- if .Values.metrics.serviceMonitor.interval }}
interval: {{ .Values.metrics.serviceMonitor.interval }}
{{- end }}

View File

@@ -733,7 +733,7 @@ metrics:
## @param metrics.service.ports.http Metrics service HTTP port
##
ports:
http: 9990
http: 8080
## @param metrics.service.annotations [object] Annotations for enabling prometheus to access the metrics endpoints
##
annotations: