36.133.115.174

ram账户
zgydtxjtcqyxgs18883257311
cqcmii
2013SHUde#1


root

Dict@2024

IFQ9jIkHy9,

实例名称	规格类型	资源类型	CPU（核）	GPU类型	GPU数量	内存（G）	内网IPv4	公网IP	IPv6地址	系统盘大小（G）	网卡1(IPv4)	网卡1(IPv6)	网卡2(IPv4)	网卡2(IPv6)
kcs-cmii-drone-s-8hfnk	通用网络优化型	VM	12			24	192.168.9.36, 10.191.193.180			200	192.168.9.36		10.191.193.180
kcs-cmii-drone-s-wqqck	通用网络优化型	VM	12			24	192.168.9.98, 10.191.192.104			200	192.168.9.98		10.191.192.104
cmii2-ecs	通用型	VM	8			16	192.168.9.4			200	192.168.9.4 36.133.115.90

mv agent-wdd_linux_arm64 /usr/local/bin/agent-wdd
chmod +x /usr/local/bin/agent-wdd

# 主节点安装ssh-key
/usr/local/bin/agent-wdd base ssh config
/usr/local/bin/agent-wdd base ssh key

DEFAULT_HTTP_BACKEND_IP=$(kubectl -n ingress-nginx get svc default-http-backend -o jsonpath='{.spec.clusterIP}')

192.168.5.41

# 批量执行命令
host_list=(
   192.168.5.41
   192.168.5.207
   192.168.5.141
   192.168.5.195
)

for server in "${host_list[@]}";do
   echo " ---> current ip is $server - $(hostname)"

   ssh root@"$server" "DEFAULT_HTTP_BACKEND_IP='$DEFAULT_HTTP_BACKEND_IP' bash -s" <<'EOF'
   echo "DEFAULT_HTTP_BACKEND_IP=$DEFAULT_HTTP_BACKEND_IP"

   curl -s "http://${DEFAULT_HTTP_BACKEND_IP}"
   echo
EOF

   echo ""
done


scp /usr/local/bin/agent-wdd root@${server}:/usr/local/bin/agent-wdd
ssh root@${server} "/usr/local/bin/agent-wdd base ssh config && /usr/local/bin/agent-wdd base ssh key"
ssh root@${server} "echo yes"


scp /root/wdd/docker-arm64-20.10.15.tgz root@${server}:/root/wdd/docker-arm64-20.10.15.tgz
ssh root@${server} "cd /root/wdd/ && tar -zvxf docker-arm64-20.10.15.tgz"
scp /root/wdd/docker-compose-v2.18.0-linux-arm64  root@${server}:/root/wdd/

ssh root@${server} "/usr/local/bin/agent-wdd base docker local"
ssh root@${server} "/usr/local/bin/agent-wdd base dockercompose local"