Commit 3433de93 by wangtingwei

添加securycontext runas user

1 parent d2b0e57d
Showing with 2 additions and 0 deletions
......@@ -13,6 +13,8 @@ spec:
serviceAccountName: autodl-serviceaccount
nodeSelector:
gpu: "true"
securityContext: #解决默认镜像用户非root,而宿主机创建目录需要root权限问题,以root用户运行。
runAsUser: 0
containers:
- name: devpi
image: 192.168.1.56:5000/k8s/k8s-devpi:v2
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!