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 00dc86b8
authored
Sep 01, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update deploy-gpu-k8s.sh
1 parent
74d814b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
script/k8s/deploy-gpu-k8s.sh
script/k8s/deploy-gpu-k8s.sh
View file @
00dc86b
...
@@ -8,14 +8,14 @@ etcd_ip=192.168.1.32
...
@@ -8,14 +8,14 @@ etcd_ip=192.168.1.32
master_ip
=
192.168.1.32
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
harbor_user
=
admin
image_path
=
/root/images
#写死的不能改
image_path
=
/root/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
`
harbor_user_name
=
admin
harbor_user_name
=
admin
harbor_passwd
=
admin
harbor_auth_token
=
$(
echo
-n
"
${
harbor_user
}
:
${
harbor_passwd
}
"
| base64
harbor_auth_token
=
$(
echo
-n
"
${
harbor_user_name
}
:
${
harbor_passwd
}
"
| base64
harbor_project_list
=(
harbor_project_list
=(
k8s
k8s
kpl_k8s
kpl_k8s
...
@@ -116,7 +116,6 @@ EOF
...
@@ -116,7 +116,6 @@ EOF
fs.inotify.max_user_watches=1048576
fs.inotify.max_user_watches=1048576
EOF
EOF
modprobe br_netfilter
&&
/sbin/sysctl -p
&&
echo
"sysctl set OK!!"
modprobe br_netfilter
&&
/sbin/sysctl -p
&&
echo
"sysctl set OK!!"
echo
"make k8s dir success"
echo
"+++++++++++++++++++++++++++++change bash++++++++++++++++++++++++++++++"
echo
"+++++++++++++++++++++++++++++change bash++++++++++++++++++++++++++++++"
rm /bin/sh
&&
ln -s /bin/bash /bin/sh
rm /bin/sh
&&
ln -s /bin/bash /bin/sh
sleep 3
sleep 3
...
...
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