diff --git a/helm/install/Chart.yaml b/helm/install/Chart.yaml index 988ce8d2..0c6fda02 100644 --- a/helm/install/Chart.yaml +++ b/helm/install/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: pgo description: Installer for PGO, the open source Postgres Operator from Crunchy Data type: application -version: 0.2.3 +version: 0.2.4 appVersion: 5.0.4 diff --git a/helm/install/templates/manager.yaml b/helm/install/templates/manager.yaml index 3ca42974..73d27b23 100644 --- a/helm/install/templates/manager.yaml +++ b/helm/install/templates/manager.yaml @@ -29,6 +29,9 @@ spec: - name: PGO_TARGET_NAMESPACE valueFrom: { fieldRef: { apiVersion: v1, fieldPath: metadata.namespace } } {{- end }} + ports: + - containerPort: 8080 + name: metrics securityContext: allowPrivilegeEscalation: false readOnlyRootFilesystem: true diff --git a/helm/install/templates/service.yaml b/helm/install/templates/service.yaml new file mode 100644 index 00000000..57aefd7b --- /dev/null +++ b/helm/install/templates/service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + {{- include "install.labels" . | nindent 4 }} + name: {{ .Chart.Name }} +spec: + ports: + - name: metrics + port: 9090 + protocol: TCP + targetPort: metrics + selector: + {{- include "install.crunchyLabels" . | nindent 5 }}