k8s.io/kubernetes@v1.31.0-alpha.0.0.20240520171757-56147500dadc/test/e2e/testing-manifests/sample-device-plugin/sample-device-plugin.yaml (about)

     1  apiVersion: apps/v1
     2  kind: DaemonSet
     3  metadata:
     4    name: sample-device-plugin-beta
     5    namespace: kube-system
     6    labels:
     7      k8s-app: sample-device-plugin
     8  spec:
     9    selector:
    10      matchLabels:
    11        k8s-app: sample-device-plugin
    12    template:
    13      metadata:
    14        labels:
    15          k8s-app: sample-device-plugin
    16        annotations:
    17      spec:
    18        priorityClassName: system-node-critical
    19        tolerations:
    20        - operator: "Exists"
    21          effect: "NoExecute"
    22        - operator: "Exists"
    23          effect: "NoSchedule"
    24        volumes:
    25        - name: device-plugin
    26          hostPath:
    27            path: /var/lib/kubelet/device-plugins
    28        - name: plugins-registry-probe-mode
    29          hostPath:
    30            path: /var/lib/kubelet/plugins_registry
    31        - name: dev
    32          hostPath:
    33            path: /dev
    34        - name: cdi-dir
    35          hostPath:
    36            path: /var/run/cdi
    37        containers:
    38        - image: registry.k8s.io/e2e-test-images/sample-device-plugin:1.7
    39          name: sample-device-plugin
    40          env:
    41          - name: PLUGIN_SOCK_DIR
    42            value: "/var/lib/kubelet/device-plugins"
    43          securityContext:
    44            privileged: true
    45          volumeMounts:
    46          - name: device-plugin
    47            mountPath: /var/lib/kubelet/device-plugins
    48          - name: plugins-registry-probe-mode
    49            mountPath: /var/lib/kubelet/plugins_registry
    50          - name: dev
    51            mountPath: /dev
    52          - name: cdi-dir
    53            mountPath: /var/run/cdi
    54    updateStrategy:
    55      type: RollingUpdate