apiVersion: apps/v1 kind: DaemonSet metadata: name: {{ include "prometheus-fail2ban-exporter.fullname" . }} labels: {{- include "prometheus-fail2ban-exporter.labels" . | nindent 4 }} spec: selector: matchLabels: {{- include "prometheus-fail2ban-exporter.selectorLabels" . | nindent 6 }} template: metadata: {{- with .Values.podAnnotations }} annotations: {{- toYaml . | nindent 8 }} {{- end }} labels: {{- include "prometheus-fail2ban-exporter.selectorLabels" . | nindent 8 }} spec: {{- with .Values.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} containers: - name: {{ .Chart.Name }} envFrom: - secretRef: name: {{ include "prometheus-fail2ban-exporter.fullname" . }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http containerPort: 9191 protocol: TCP livenessProbe: httpGet: path: /metrics port: http readinessProbe: httpGet: path: /metrics port: http resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.volumeMounts }} volumeMounts: {{- toYaml . | nindent 10 }} {{- end }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- if .Values.podPriorityClassName }} priorityClassName: {{ .Values.podPriorityClassName }} {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.volumes }} volumes: {{- toYaml . | nindent 6 }} {{- end }}