环境信息:
RKE2 版本:
2.63
节点 CPU 架构,操作系统和版本:
Linux john-Precision-7920-Tower 5.15.0-88-generic #98~20.04.1-Ubuntu SMP Mon Oct 9 16:43:45 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
集群配置:
1 server
在物理机节点安装了Rancher,通过VMware构建了虚拟机,二者可以ping。
问题描述:
使用Rancher新建节点脚本,不能生存节点。
重现步骤:
- 安装 RKE2 的命令:
curl --insecure -fL https://localhost/system-agent-install.sh | sudo sh -s - --server https://localhost --label ‘cattle.io/os=linux’ --token rznbfmsfg77hfv4lp7w5rrtsd2wxtz9jrvz2jpsbl76vfgnf4zfm5x --ca-checksum b488a75cfbceb10fbde0ad97fe4963dddf1ae066814fa03f24dab715b2397ab9 --worker
注:localhost替换为安装Rancher机器IP。
预期结果:
在虚拟机上运行新建节点脚本,生成节点。
实际结果:
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
[ERROR] 000 received while testing Rancher connection. Sleeping for 5 seconds and trying again
curl: (60) SSL: no alternative certificate subject name matches target host name ‘192.168.1.102’
More details here: curl - SSL CA Certificates