Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
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 7bcfaeb8
authored
Jul 13, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update deploy-gpu-k8s.sh ,gou节点也需要打cpu=true,避免单节点gpu运行不了cpu任务的问题
1 parent
dd12d21e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
script/k8s/deploy-gpu-k8s.sh
script/k8s/deploy-gpu-k8s.sh
View file @
7bcfaeb
...
...
@@ -450,7 +450,7 @@ echo "隸キ謇句勘蝨ィmaster闃らせ 隶セ鄂ョ蜻ス莉、閾ェ蜉ィ陦・蜈ィ悟多莉、蝨ィ閼壽悽譛蜷惹
#source <(kubectl completion bash) && echo "source <(kubectl completion bash)" >> ~/.bashrc"
##############################################################################
echo
"为gpu节点打标签"
kubectl label node
$host_name
autodl
=
true
kpl
=
true
gpu
=
true
user_job_node
=
true
internal_service_node
=
true
kubectl label node
$host_name
autodl
=
true
kpl
=
true
gpu
=
true
cpu
=
true
user_job_node
=
true
internal_service_node
=
true
echo
"###################创建pv pvc#############"
echo
"########################修改pv模板#######################"
&&
sleep 3
sed -i s@NFS_PATH@
$NFS_PATH
@g /root/k8s/autodl_kpl_base/autodl-nfs/4-pv_pvc.yaml
...
...
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