diff --git a/charts/cni-metrics-helper/templates/deployment.yaml b/charts/cni-metrics-helper/templates/deployment.yaml index 192ce9e56e..7f7fbb6f4c 100644 --- a/charts/cni-metrics-helper/templates/deployment.yaml +++ b/charts/cni-metrics-helper/templates/deployment.yaml @@ -41,6 +41,11 @@ spec: {{- end }} name: cni-metrics-helper image: "{{- if .Values.image.override }}{{- .Values.image.override }}{{- else }}{{- .Values.image.account }}.dkr.ecr.{{- .Values.image.region }}.{{- .Values.image.domain }}/cni-metrics-helper:{{- .Values.image.tag }}{{- end}}" +{{- if eq (get .Values.env "USE_PROMETHEUS") "true" }} + ports: + - containerPort: 61681 + name: metrics +{{- end }} serviceAccountName: {{ template "cni-metrics-helper.serviceAccountName" . }} {{- with .Values.tolerations }} tolerations: