File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed
Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ CloudNativePG Operator Helm Chart
4141| dnsPolicy | string | ` "" ` | |
4242| fullnameOverride | string | ` "" ` | |
4343| hostNetwork | bool | ` false ` | |
44+ | metrics.port | int | ` 8080 ` | Port used by the controller to expose Prometheus metrics. Useful when running with hostNetwork=true to avoid conflicts. |
4445| image.pullPolicy | string | ` "IfNotPresent" ` | |
4546| image.repository | string | ` "ghcr.io/cloudnative-pg/cloudnative-pg" ` | |
4647| image.tag | string | ` "" ` | Overrides the image tag whose default is the chart appVersion. |
Original file line number Diff line number Diff line change 7575 {{- end }}
7676 {{- end }}
7777 - --webhook-port={{ .Values.webhook.port }}
78+ - " --metrics-bind-address=:{{ .Values.metrics.port }}"
7879 {{- range .Values.additionalArgs }}
7980 - {{ . }}
8081 {{- end }}
@@ -108,7 +109,7 @@ spec:
108109 {{- end }}
109110 name : manager
110111 ports :
111- - containerPort : 8080
112+ - containerPort : {{ .Values.metrics.port }}
112113 name : metrics
113114 protocol : TCP
114115 - containerPort : {{ .Values.webhook.port }}
Original file line number Diff line number Diff line change 4040 - port : {{ .Values.service.port }}
4141 targetPort : webhook-server
4242 name : webhook-server
43+ - port : {{ .Values.metrics.port }}
44+ targetPort : metrics
45+ name : metrics
4346 selector :
4447 {{- include "cloudnative-pg.selectorLabels" . | nindent 4 }}
Original file line number Diff line number Diff line change @@ -66,6 +66,12 @@ webhook:
6666 failureThreshold : 6
6767 periodSeconds : 5
6868
69+ # Metrics configuration for the operator
70+ metrics :
71+ # -- Port used by the controller to expose Prometheus metrics.
72+ # Useful when running with hostNetwork=true to avoid conflicts.
73+ port : 8080
74+
6975# Operator configuration.
7076config :
7177 # -- Specifies whether the secret should be created.
You can’t perform that action at this time.
0 commit comments