Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
devpi-k8s
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3433de93
authored
Sep 03, 2020
by
wangtingwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加securycontext runas user
1 parent
d2b0e57d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
deployment.yaml
deployment.yaml
View file @
3433de9
...
@@ -13,6 +13,8 @@ spec:
...
@@ -13,6 +13,8 @@ spec:
serviceAccountName
:
autodl-serviceaccount
serviceAccountName
:
autodl-serviceaccount
nodeSelector
:
nodeSelector
:
gpu
:
"
true"
gpu
:
"
true"
securityContext
:
#解决默认镜像用户非root,而宿主机创建目录需要root权限问题,以root用户运行。
runAsUser
:
0
containers
:
containers
:
-
name
:
devpi
-
name
:
devpi
image
:
192.168.1.56:5000/k8s/k8s-devpi:v2
image
:
192.168.1.56:5000/k8s/k8s-devpi:v2
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment