2021-09-02 17:36:11 +00:00
|
|
|
{{- if .Values.fuseDevicePlugin.enabled }}
|
2021-02-12 11:04:16 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
name: fuse-device-plugin
|
|
|
|
namespace: kube-system
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
name: fuse-device-plugin
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: fuse-device-plugin
|
|
|
|
spec:
|
2023-10-02 12:57:25 +00:00
|
|
|
priorityClassName: system-node-critical
|
|
|
|
tolerations:
|
|
|
|
- key: CriticalAddonsOnly
|
|
|
|
operator: Exists
|
|
|
|
- key: kubezero-workergroup
|
|
|
|
effect: NoSchedule
|
|
|
|
operator: Exists
|
2021-02-12 11:04:16 +00:00
|
|
|
containers:
|
2023-10-02 12:57:25 +00:00
|
|
|
- image: "{{ .Values.fuseDevicePlugin.image.name }}:{{ .Values.fuseDevicePlugin.image.tag }}"
|
2021-02-12 11:04:16 +00:00
|
|
|
# imagePullPolicy: Always
|
|
|
|
name: fuse-device-plugin
|
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
capabilities:
|
|
|
|
drop: ["ALL"]
|
|
|
|
volumeMounts:
|
|
|
|
- name: device-plugin
|
|
|
|
mountPath: /var/lib/kubelet/device-plugins
|
|
|
|
volumes:
|
|
|
|
- name: device-plugin
|
|
|
|
hostPath:
|
|
|
|
path: /var/lib/kubelet/device-plugins
|
2021-09-02 17:36:11 +00:00
|
|
|
{{- end }}
|