github.com/grafana/pyroscope@v1.18.0/operations/monitoring/helm/pyroscope-monitoring/templates/deployment.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: {{ include "pyroscope-monitoring.fullname" . }} 5 labels: 6 {{- include "pyroscope-monitoring.labels" . | nindent 4 }} 7 spec: 8 replicas: {{ .Values.replicaCount }} 9 selector: 10 matchLabels: 11 {{- include "pyroscope-monitoring.selectorLabels" . | nindent 6 }} 12 template: 13 metadata: 14 annotations: 15 dashboards/hash: {{ include "pyroscope-monitoring.dashboards-hash" . | quote}} 16 rules/hash: {{ include "pyroscope-monitoring.rules-hash" . | quote}} 17 {{- with .Values.podAnnotations }} 18 {{- toYaml . | nindent 8 }} 19 {{- end }} 20 labels: 21 {{- include "pyroscope-monitoring.labels" . | nindent 8 }} 22 {{- with .Values.podLabels }} 23 {{- toYaml . | nindent 8 }} 24 {{- end }} 25 spec: 26 {{- with .Values.imagePullSecrets }} 27 imagePullSecrets: 28 {{- toYaml . | nindent 8 }} 29 {{- end }} 30 securityContext: 31 {{- toYaml .Values.podSecurityContext | nindent 8 }} 32 containers: 33 - name: {{ .Chart.Name }} 34 securityContext: 35 {{- toYaml .Values.securityContext | nindent 12 }} 36 image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" 37 imagePullPolicy: {{ .Values.image.pullPolicy }} 38 ports: 39 {{- range .Values.service.ports }} 40 - name: {{ .name | quote }} 41 containerPort: {{ .targetPort }} 42 protocol: {{ .protocol | quote }} 43 {{- end }} 44 livenessProbe: 45 {{- toYaml .Values.livenessProbe | nindent 12 }} 46 readinessProbe: 47 {{- toYaml .Values.readinessProbe | nindent 12 }} 48 resources: 49 {{- toYaml .Values.resources | nindent 12 }} 50 {{- with .Values.env}} 51 env: 52 {{- toYaml . | nindent 12 }} 53 {{- end }} 54 {{- with .Values.volumeMounts }} 55 volumeMounts: 56 {{- toYaml . | nindent 12 }} 57 {{- end }} 58 volumes: 59 - name: dashboards 60 configMap: 61 name: {{ include "pyroscope-monitoring.fullname" . }}-dashboards 62 - name: rules 63 configMap: 64 name: {{ include "pyroscope-monitoring.fullname" . }}-rules 65 {{- with .Values.volumes }} 66 {{- toYaml . | nindent 8 }} 67 {{- end }} 68 {{- with .Values.nodeSelector }} 69 nodeSelector: 70 {{- toYaml . | nindent 8 }} 71 {{- end }} 72 {{- with .Values.affinity }} 73 affinity: 74 {{- toYaml . | nindent 8 }} 75 {{- end }} 76 {{- with .Values.tolerations }} 77 tolerations: 78 {{- toYaml . | nindent 8 }} 79 {{- end }}