Add appProtocol to services collecting metrics using mTLS (#688)

This commit is contained in:
leo sanchez 2024-11-07 01:16:17 -06:00 committed by GitHub
parent 73f6a7b598
commit d57aae4fd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 0 deletions

View File

@ -33,6 +33,9 @@ spec:
- name: metrics
port: {{ .Values.prometheus.operator.port }}
targetPort: {{ .Values.prometheus.operator.port }}
{{- with .Values.prometheus.operator.appProtocol }}
appProtocol: {{ . }}
{{- end }}
{{- end }}
{{- if .Values.profiling.operator.enabled }}
- name: profiling

View File

@ -37,6 +37,9 @@ spec:
port: {{ .Values.prometheus.metricServer.port }}
targetPort: {{ .Values.prometheus.metricServer.port }}
protocol: TCP
{{- with .Values.prometheus.metricServer.appProtocol }}
appProtocol: {{ . }}
{{- end }}
{{- if .Values.profiling.metricsServer.enabled }}
- name: profiling
port: {{ .Values.profiling.metricsServer.port }}

View File

@ -36,6 +36,9 @@ spec:
- name: {{ .Values.prometheus.webhooks.serviceMonitor.port }}
port: {{ .Values.prometheus.webhooks.port }}
targetPort: {{ .Values.prometheus.webhooks.port }}
{{- with .Values.prometheus.webhooks.appProtocol }}
appProtocol: {{ . }}
{{- end }}
{{- end }}
{{- if .Values.profiling.webhooks.enabled }}
- name: profiling

View File

@ -605,6 +605,8 @@ prometheus:
port: 8080
# -- HTTP port name for exposing metrics server prometheus metrics
portName: metrics
# -- App Protocol for service when scraping metrics endpoint
# appProtocol: http
serviceMonitor:
# -- Enables ServiceMonitor creation for the Prometheus Operator
enabled: false
@ -658,6 +660,8 @@ prometheus:
enabled: false
# -- Port used for exposing KEDA Operator prometheus metrics
port: 8080
# -- App Protocol for service when scraping metrics endpoint
# appProtocol: http
serviceMonitor:
# -- Enables ServiceMonitor creation for the Prometheus Operator
enabled: false
@ -729,6 +733,8 @@ prometheus:
enabled: false
# -- Port used for exposing KEDA admission webhooks prometheus metrics
port: 8080
# -- App Protocol for service when scraping metrics endpoint
# appProtocol: http
serviceMonitor:
# -- Enables ServiceMonitor creation for the Prometheus webhooks
enabled: false