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 a1063a1c
authored
Apr 13, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update add_node.sh 添加下载conntrack组件
1 parent
7235376c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
script/k8s/add_node.sh
script/k8s/add_node.sh
View file @
a1063a1
...
@@ -38,7 +38,7 @@ echo "当前harbor仓库地址为$harbor_host,"
...
@@ -38,7 +38,7 @@ echo "当前harbor仓库地址为$harbor_host,"
sed -i s/harbor_host/
$harbor_host
/g /root/k8s/config/daemon.json
sed -i s/harbor_host/
$harbor_host
/g /root/k8s/config/daemon.json
echo
"开始安装docker"
echo
"开始安装docker"
ansible new_node -m shell -a
"apt update --allow-insecure-repositories"
ansible new_node -m shell -a
"apt update --allow-insecure-repositories"
ansible new_node -m shell -a
"apt install docker-ce -y --allow-unauthenticated"
ansible new_node -m shell -a
"apt install
conntrack
docker-ce -y --allow-unauthenticated"
echo
"拷贝docker.service到新node节点"
echo
"拷贝docker.service到新node节点"
ansible new_node -m copy -a
"src=/root/k8s/service/docker.service dest=/lib/systemd/system/docker.service mode=755"
ansible new_node -m copy -a
"src=/root/k8s/service/docker.service dest=/lib/systemd/system/docker.service mode=755"
ansible new_node -m shell -a
"systemctl daemon-reload"
ansible new_node -m shell -a
"systemctl daemon-reload"
...
...
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