blob: 7ba04047721038c4c352895e369052c2fe168bf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: {{ include "qat-device-plugin.fullname" . }}-qat-driver-installer
labels:
{{- include "qat-device-plugin.labels" . | nindent 4 }}
role: qat-driver-installer
spec:
selector:
matchLabels:
{{- include "qat-device-plugin.selectorLabels" . | nindent 6 }}
role: qat-driver-installer
template:
metadata:
labels:
{{- include "qat-device-plugin.selectorLabels" . | nindent 8 }}
role: qat-driver-installer
spec:
hostPID: true
{{- with .Values.qatDriver.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
{{- toYaml .Values.qatDriver.podSecurityContext | nindent 8 }}
initContainers:
- image: "{{ .Values.qatDriver.image.repository }}:{{ .Values.qatDriver.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.qatDriver.image.pullPolicy }}
name: qat-driver-installer
securityContext:
{{- toYaml .Values.qatDriver.securityContext | nindent 12 }}
resources:
{{- toYaml .Values.qatDriver.resources | nindent 12 }}
volumeMounts:
- name: qat-install-dir
mountPath: "/usr/local/qat"
- name: root-dir
mountPath: "/root"
- name: lib-modules-dir
mountPath: "/root/lib/modules"
- name: run-systemd-dir
mountPath: "/root/run/systemd/system"
containers:
- image: "gcr.io/google-containers/pause:3.2"
name: pause
volumes:
- name: qat-install-dir
hostPath:
path: "/opt/qat"
- name: root-dir
hostPath:
path: "/"
- name: lib-modules-dir
hostPath:
path: "/lib/modules"
- name: run-systemd-dir
hostPath:
path: "/run/systemd/system"
{{- with .Values.qatDriver.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.qatDriver.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.qatDriver.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
|