diff --git a/deploy/charts/kube-oidc-proxy/templates/deployment.yaml b/deploy/charts/kube-oidc-proxy/templates/deployment.yaml index 5de2869b1..d90051cf3 100644 --- a/deploy/charts/kube-oidc-proxy/templates/deployment.yaml +++ b/deploy/charts/kube-oidc-proxy/templates/deployment.yaml @@ -18,6 +18,11 @@ spec: labels: app.kubernetes.io/name: {{ include "kube-oidc-proxy.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} + annotations: + {{- if and .Values.metrics.enabled }} + prometheus.io/scrape: 'true' + prometheus.io/port: '{{ .Values.metrics.port }}' + {{ end }} spec: serviceAccountName: {{ include "kube-oidc-proxy.fullname" . }} containers: