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 87e2cdda
authored
Jul 19, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Plain Diff
fix
2 parents
57340aa7
a8cccf4a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
script/k8s/deploy-gpu-k8s.sh
script/sed-upper.sh
script/k8s/deploy-gpu-k8s.sh
View file @
87e2cdd
...
@@ -9,7 +9,7 @@ master_ip=192.168.1.32
...
@@ -9,7 +9,7 @@ master_ip=192.168.1.32
harbor_host
=
192.168.1.32:5000
harbor_host
=
192.168.1.32:5000
harbor_passwd
=
admin
#写死的不能改,harbor配置文件中password写死了,当前只能是admin
harbor_passwd
=
admin
#写死的不能改,harbor配置文件中password写死了,当前只能是admin
image_path
=
/root/k8s/images
#写死的不能改
image_path
=
/root/k8s/images
#写死的不能改
interface
=
eno1
#本机IP的物理网卡名称,用于flannel的配置。
interface
=
eno1
#本机
内网
IP的物理网卡名称,用于flannel的配置。
image_list
=
`
cat
$image_path
/image_list.txt
`
image_list
=
`
cat
$image_path
/image_list.txt
`
image_list_ksy
=
`
cat
$image_path
/image_list_ksy.txt
`
image_list_ksy
=
`
cat
$image_path
/image_list_ksy.txt
`
host_name
=
`
hostname
`
host_name
=
`
hostname
`
...
@@ -450,7 +450,7 @@ echo "请手动在master节点 设置命令自动补全,命令在脚本最后
...
@@ -450,7 +450,7 @@ echo "请手动在master节点 设置命令自动补全,命令在脚本最后
#source <(kubectl completion bash) && echo "source <(kubectl completion bash)" >> ~/.bashrc"
#source <(kubectl completion bash) && echo "source <(kubectl completion bash)" >> ~/.bashrc"
##############################################################################
##############################################################################
echo
"为gpu节点打标签"
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 pvc#############"
echo
"########################修改pv模板#######################"
&&
sleep 3
echo
"########################修改pv模板#######################"
&&
sleep 3
sed -i s@NFS_PATH@
$NFS_PATH
@g /root/k8s/autodl_kpl_base/autodl-nfs/4-pv_pvc.yaml
sed -i s@NFS_PATH@
$NFS_PATH
@g /root/k8s/autodl_kpl_base/autodl-nfs/4-pv_pvc.yaml
...
...
script/sed-upper.sh
View file @
87e2cdd
...
@@ -26,6 +26,10 @@ function autodl_recover() {
...
@@ -26,6 +26,10 @@ function autodl_recover() {
sed -i s/
$PUBLIC_IP
/PUBLIC_IP/g autodl/2-replace-file.sh
sed -i s/
$PUBLIC_IP
/PUBLIC_IP/g autodl/2-replace-file.sh
sed -i s/
$INTRANET_IP
/INTRANET_IP/g autodl/2-replace-file.sh
sed -i s/
$INTRANET_IP
/INTRANET_IP/g autodl/2-replace-file.sh
}
}
<<<<<<
< HEAD
=======
>>>>>>>
a8cccf4aa6ac7b50eae0ee6df4268fb97fa677c5
case
$1
in
case
$1
in
seetaas_sed
)
seetaas_sed
)
seetaas_sed
seetaas_sed
...
...
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