diff --git a/helm/install/Chart.yaml b/helm/install/Chart.yaml index c5679457..75832221 100644 --- a/helm/install/Chart.yaml +++ b/helm/install/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: pgo description: A Helm chart for Kubernetes type: application -version: 0.2.2 +version: 0.2.3 appVersion: 5.0.3 diff --git a/helm/install/templates/manager.yaml b/helm/install/templates/manager.yaml index 7ca8e4cc..8cddda8d 100644 --- a/helm/install/templates/manager.yaml +++ b/helm/install/templates/manager.yaml @@ -31,6 +31,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 }}