github.com/alibaba/sealer@v0.8.6-0.20220430115802-37a2bdaa8173/applications/nvidia-plugin/nvidia-device-plugin.yml (about)

     1  apiVersion: v1
     2  kind: Pod
     3  metadata:
     4    annotations:
     5      scheduler.alpha.kubernetes.io/critical-pod: ""
     6    labels:
     7      component: nvidia-device-plugin
     8    name: nvidia-device-plugin
     9    namespace: kube-system
    10  spec:
    11    hostNetwork: true
    12    containers:
    13    - image: nvcr.io/nvidia/k8s-device-plugin:v0.9.0
    14      name: nvidia-device-plugin-ctr
    15      # Make this pod as Guaranteed pod which will never be evicted because of node's resource consumption.
    16      resources:
    17        limits:
    18          memory: "300Mi"
    19          cpu: "1"
    20        requests:
    21          memory: "300Mi"
    22          cpu: "1"
    23      securityContext:
    24        allowPrivilegeEscalation: false
    25        capabilities:
    26          drop: ["ALL"]
    27      volumeMounts:
    28        - name: device-plugin
    29          mountPath: /var/lib/kubelet/device-plugins
    30    volumes:
    31      - name: device-plugin
    32        hostPath:
    33          path: /var/lib/kubelet/device-plugins