Commit a1063a1c by tingweiwang

Update add_node.sh 添加下载conntrack组件

1 parent 7235376c
Showing with 1 additions and 1 deletions
......@@ -38,7 +38,7 @@ echo "当前harbor仓库地址为$harbor_host,"
sed -i s/harbor_host/$harbor_host/g /root/k8s/config/daemon.json
echo "开始安装docker"
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节点"
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"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!