49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: {{ .Chart.Name }}-device-plugin-daemonset
|
|
namespace: {{ .Values.namespace }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
name: {{ .Chart.Name }}-dp-ds
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: {{ .Chart.Name }}-dp-ds
|
|
spec:
|
|
{{- with .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.nfd.enabled }}
|
|
{{- with .Values.node_selector }}
|
|
nodeSelector:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
priorityClassName: system-node-critical
|
|
{{- with .Values.tolerations }}
|
|
tolerations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
containers:
|
|
- name: {{ .Chart.Name }}-dp-cntr
|
|
image: {{ .Values.dp.image.repository }}:{{ .Values.dp.image.tag | default .Chart.AppVersion }}
|
|
securityContext:
|
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
|
volumeMounts:
|
|
- name: dp
|
|
mountPath: /var/lib/kubelet/device-plugins
|
|
- name: sys
|
|
mountPath: /sys
|
|
resources:
|
|
{{- toYaml .Values.dp.resources | nindent 12 }}
|
|
volumes:
|
|
- name: dp
|
|
hostPath:
|
|
path: /var/lib/kubelet/device-plugins
|
|
- name: sys
|
|
hostPath:
|
|
path: /sys
|