apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "my-prometheus.fullname" . }} spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: app: {{ include "my-prometheus.name" . }} template: metadata: labels: app: {{ include "my-prometheus.name" . }} spec: containers: - name: prometheus image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - containerPort: 9090 resources: {{- toYaml .Values.resources | nindent 12 }}