From 1be396b00bc83efd393812520548f6e6dda68c8d Mon Sep 17 00:00:00 2001 From: fourhu Date: Tue, 17 Dec 2024 17:11:45 +0800 Subject: [PATCH] update ds yaml --- k8s-dcu-plugin.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/k8s-dcu-plugin.yaml b/k8s-dcu-plugin.yaml index b0e7233..dad3f48 100644 --- a/k8s-dcu-plugin.yaml +++ b/k8s-dcu-plugin.yaml @@ -28,9 +28,6 @@ spec: - image: swr.cn-central-221.ovaijisuan.com/hami/dcu-vgpu-device-plugin:master #command: ["/bin/bash","-c","source /opt/hygondriver/env.sh && sleep infinity"] command: [ "/root/k8s-device-plugin" ] - # command: - # - sleep - # - "3600000" name: dcu-dp-cntr env: - name: NODE_NAME @@ -43,10 +40,10 @@ spec: value: ~/.bashrc securityContext: privileged: true - # allowPrivilegeEscalation: true - # capabilities: - # drop: [ "ALL" ] - # add: [ "SYS_ADMIN" ] + allowPrivilegeEscalation: true + capabilities: + drop: [ "ALL" ] + add: [ "SYS_ADMIN" ] volumeMounts: - name: dp mountPath: /var/lib/kubelet/device-plugins