Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Prometheus Metrics Server with k8s Service #62

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion helm/install/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ description: Installer for PGO, the open source Postgres Operator from Crunchy D

type: application
# The version below should match the version on the PostgresCluster CRD
version: 0.6.0
version: 0.6.1
appVersion: 5.2.0
3 changes: 3 additions & 0 deletions helm/install/templates/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ spec:
- name: CHECK_FOR_UPGRADES
value: "false"
{{- end }}
ports:
- containerPort: 8080
name: metrics
securityContext:
allowPrivilegeEscalation: false
capabilities: { drop: [ALL] }
Expand Down
15 changes: 15 additions & 0 deletions helm/install/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
labels:
{{- include "install.labels" . | nindent 4 }}
{{- include "install.clusterLabels" . | nindent 4 }}
name: {{ .Chart.Name }}
spec:
ports:
- name: metrics
port: 9090
protocol: TCP
targetPort: metrics
selector:
{{- include "install.clusterLabels" . | nindent 4 }}