Skip to content

Commit

Permalink
Merge pull request #173 from dalbani/support-health-and-metrics
Browse files Browse the repository at this point in the history
CLOUD-838 - [PSMDB Operator] Support health and metrics endpoints
  • Loading branch information
tplavcic authored Jan 31, 2024
2 parents 37ea961 + 6f9583f commit c8a76e1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/psmdb-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: "1.15.0"
description: A Helm chart for deploying the Percona Operator for MongoDB
name: psmdb-operator
home: https://docs.percona.com/percona-operator-for-mongodb/
version: 1.15.1
version: 1.15.2
maintainers:
- name: tplavcic
email: [email protected]
Expand Down
21 changes: 12 additions & 9 deletions charts/psmdb-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: 60000
- containerPort: 8080
protocol: TCP
name: metrics
- containerPort: 8081
protocol: TCP
name: health
command:
- percona-server-mongodb-operator
env:
Expand All @@ -65,14 +68,14 @@ spec:
value: "{{ .Values.env.resyncPeriod }}"
- name: DISABLE_TELEMETRY
value: "{{ .Values.disableTelemetry }}"
# livenessProbe:
# httpGet:
# path: /
# port: metrics
# readinessProbe:
# httpGet:
# path: /
# port: metrics
livenessProbe:
httpGet:
path: /healthz
port: health
readinessProbe:
httpGet:
path: /healthz
port: health
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down

0 comments on commit c8a76e1

Please sign in to comment.