Debian Codegraph @

charts/bird-exporter/templates/daemonset.yaml

raw symbols SCIP
1 apiVersion: apps/v1
2 kind: DaemonSet
3 metadata:
4 name: {{ include "bird-exporter.fullname" . }}
5 labels:
6 {{- include "bird-exporter.labels" . | nindent 4 }}
7 spec:
8 selector:
9 matchLabels:
10 {{- include "bird-exporter.selectorLabels" . | nindent 6 }}
11 template:
12 metadata:
13 {{- with .Values.podAnnotations }}
14 annotations:
15 {{- toYaml . | nindent 8 }}
16 {{- end }}
17 labels:
18 {{- include "bird-exporter.selectorLabels" . | nindent 8 }}
19 spec:
20 {{- with .Values.imagePullSecrets }}
21 imagePullSecrets:
22 {{- toYaml . | nindent 8 }}
23 {{- end }}
24 securityContext:
25 {{- toYaml .Values.podSecurityContext | nindent 8 }}
26 containers:
27 - name: {{ .Chart.Name }}
28 securityContext:
29 {{- toYaml .Values.securityContext | nindent 12 }}
30 image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
31 imagePullPolicy: {{ .Values.image.pullPolicy }}
32 args:
33 {{- toYaml .Values.exporter.args | nindent 12 }}
34 ports:
35 - name: http-metrics
36 containerPort: 9324
37 protocol: TCP
38 resources:
39 {{- toYaml .Values.resources | nindent 12 }}
40 volumeMounts:
41 - mountPath: /var/run/bird
42 name: bird-socket
43 readOnly: true
44 {{- with .Values.nodeSelector }}
45 nodeSelector:
46 {{- toYaml . | nindent 8 }}
47 {{- end }}
48 {{- with .Values.affinity }}
49 affinity:
50 {{- toYaml . | nindent 8 }}
51 {{- end }}
52 {{- with .Values.tolerations }}
53 tolerations:
54 {{- toYaml . | nindent 8 }}
55 {{- end }}
56 volumes:
57 - name: bird-socket
58 hostPath:
59 path: {{ .Values.exporter.birdSocketPath }}