Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/cloudnative-pg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ CloudNativePG Operator Helm Chart
| dnsPolicy | string | `""` | |
| fullnameOverride | string | `""` | |
| hostNetwork | bool | `false` | |
| metrics.port | int | `8080` | Port used by the controller to expose Prometheus metrics. Useful when running with hostNetwork=true to avoid conflicts. |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"ghcr.io/cloudnative-pg/cloudnative-pg"` | |
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
Expand Down
3 changes: 2 additions & 1 deletion charts/cloudnative-pg/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ spec:
{{- end }}
{{- end }}
- --webhook-port={{ .Values.webhook.port }}
- "--metrics-bind-address=:{{ .Values.metrics.port }}"
{{- range .Values.additionalArgs }}
- {{ . }}
{{- end }}
Expand Down Expand Up @@ -108,7 +109,7 @@ spec:
{{- end }}
name: manager
ports:
- containerPort: 8080
- containerPort: {{ .Values.metrics.port }}
name: metrics
protocol: TCP
- containerPort: {{ .Values.webhook.port }}
Expand Down
3 changes: 3 additions & 0 deletions charts/cloudnative-pg/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@ spec:
- port: {{ .Values.service.port }}
targetPort: webhook-server
name: webhook-server
- port: {{ .Values.metrics.port }}
targetPort: metrics
name: metrics
selector:
{{- include "cloudnative-pg.selectorLabels" . | nindent 4 }}
6 changes: 6 additions & 0 deletions charts/cloudnative-pg/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ webhook:
failureThreshold: 6
periodSeconds: 5

# Metrics configuration for the operator
metrics:
# -- Port used by the controller to expose Prometheus metrics.
# Useful when running with hostNetwork=true to avoid conflicts.
port: 8080

# Operator configuration.
config:
# -- Specifies whether the secret should be created.
Expand Down