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 54633dac
authored
Nov 27, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.seetatech.com:tingweiwang/k8s
2 parents
4e43ff51
00a5d1c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
script/k8s/deploy-gpu-k8s.sh
script/k8s/deploy-gpu-k8s.sh
View file @
54633da
...
@@ -6,6 +6,7 @@ port=22
...
@@ -6,6 +6,7 @@ port=22
password
=
seetatech
password
=
seetatech
etcd_ip
=
192.168.1.32
etcd_ip
=
192.168.1.32
master_ip
=
192.168.1.32
master_ip
=
192.168.1.32
new_harbor_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
harbor_user
=
admin
...
@@ -436,7 +437,7 @@ ansible master -m shell -a "service docker restart"
...
@@ -436,7 +437,7 @@ ansible master -m shell -a "service docker restart"
###########################安装harbor私有仓库##############
###########################安装harbor私有仓库##############
echo
"解压harbor到/usr/local/目录"
echo
"解压harbor到/usr/local/目录"
tar -xvzf /root/k8s/package/harbor_aly.tar.gz -C /usr/local/
tar -xvzf /root/k8s/package/harbor_aly.tar.gz -C /usr/local/
cd
/usr/local/harbor/
&&
sed -i s/
harbor_host/
$harbor_host
/g harbor.cfg
&&
./prepare
&&
./install.sh
&&
echo
"harbor安装成功"
cd
/usr/local/harbor/
&&
sed -i s/
new_harbor_ip/
$new_harbor_ip
/g harbor.yml
&&
./install.sh
&&
echo
"harbor安装成功"
echo
"自动创建harbor项目目录"
&&
sleep 3
echo
"自动创建harbor项目目录"
&&
sleep 3
for
project
in
${
harbor_project_list
[@]
}
for
project
in
${
harbor_project_list
[@]
}
do
do
...
...
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