jack
1
环境信息:
RKE2 版本: 2.6.5
节点 CPU 架构,操作系统和版本:centos7
集群配置:RKE2 1rancher,3k8s node
问题描述: 使用RKE2注册k8s节点,等待五分钟后,etcd,kube*等服务都启起来了,但是node节点一直处于装换状态,没有任何报错和有用日志信息。与正常k8s集群对比发现该NODE节点上少了fleet-agent的pod
节点一直处于转换状态:
不正常节点
正常节点:
少了fleet-agent的deployment,我怀疑就是缺少fleet-agent引起的
重现步骤:
预期结果:
使用rke2注册k8s节点后,机器能正常转换成k8s节点
实际结果:
该机器一直处于转换中,且无任何报错,一般有报错回事waiting for kube-controller-manager,calico,etcd等,但这次无任何报错。
日志
jack
3
日志:
time=“2023-06-08T07:51:19Z” level=error msg=“error syncing ‘fleet-default/gemstone’: handler import-cluster: Get “https://10.43.103.90/k8s/clusters/c-m-q9w5kcnc/version?timeout=15s”: dial tcp 10.43.103.90:443: connect: connection refused, requeuing”
Thu, Jun 8 2023 3:52:19 pm time=“2023-06-08T07:52:19Z” level=error msg=“error syncing ‘fleet-default/gemstone’: handler import-cluster: Get “https://10.43.103.90/k8s/clusters/c-m-q9w5kcnc/version?timeout=15s”: dial tcp 10.43.103.90:443: connect: connection refused, requeuing”
Thu, Jun 8 2023 3:53:19 pm time=“2023-06-08T07:53:19Z” level=error msg=“error syncing ‘fleet-default/gemstone’: handler import-cluster: Get “https://10.43.103.90/k8s/clusters/c-m-q9w5kcnc/version?timeout=15s”: dial tcp 10.43.103.90:443: connect: connection refused, requeuing”
Thu, Jun 8 2023 3:54:19 pm time=“2023-06-08T07:54:19Z” level=error msg=“error syncing ‘fleet-default/gemstone’: handler import-cluster: Get “https://10.43.103.90/k8s/clusters/c-m-q9w5kcnc/version?timeout=15s”: dial tcp 10.43.103.90:443: connect: connection refused, requeuing”
Thu, Jun 8 2023 3:55:19 pm time=“2023-06-08T07:55:19Z” level=error msg=“error syncing ‘fleet-default/gemstone’: handler import-cluster: Get “https://10.43.103.90/k8s/clusters/c-m-q9w5kcnc/version?timeout=15s”: dial tcp 10.43.103.90:443: connect: connection refused, requeuing”
Thu, Jun 8 2023 3:56:19 pm time=“2023-06-08T07:56:19Z” level=error msg=“error syncing ‘fleet-default/gemstone’: handler import-cluster: Get “https://10.43.103.90/k8s/clusters/c-m-q9w5kcnc/version?timeout=15s”: dial tcp 10.43.103.90:443: connect: connection refused, requeuing”
Thu, Jun 8 2023 3:57:19 pm time=“2023-06-08T07:57:19Z” level=error msg=“error syncing ‘fleet-default/gemstone’: handler import-cluster: Get “https://10.43.103.90/k8s/clusters/c-m-q9w5kcnc/version?timeout=15s”: dial tcp 10.43.103.90:443: connect: connection refused, requeuing”
Thu, Jun 8 2023 3:58:19 pm time=“2023-06-08T07:58:19Z” level=error msg=“error syncing ‘fleet-default/gemstone’: handler import-cluster: Get “https://10.43.103.90/k8s/clusters/c-m-q9w5kcnc/version?timeout=15s”: dial tcp 10.43.103.90:443: connect: connection refused, requeuing”
Thu, Jun 8 2023 3:59:19 pm time=“2023-06-08T07:59:19Z” level=error msg=“error syncing ‘fleet-default/gemstone’: handler import-cluster: Get “https://10.43.103.90/k8s/clusters/c-m-q9w5kcnc/version?timeout=15s”: dial tcp 10.43.103.90:443: connect: connection refused, requeuing”
Thu, Jun 8 2023 4:00:19 pm time=“2023-06-08T08:00:19Z” level=error msg=“error syncing ‘fleet-default/gemstone’: handler import-cluster: Get “https://10.43.103.90/k8s/clusters/c-m-q9w5kcnc/version?timeout=15s”: dial tcp 10.43.103.90:443: connect: connection refused, requeuing”
Thu, Jun 8 2023 4:01:19 pm time=“2023-06-08T08:01:19Z” level=error msg=“error syncing ‘fleet-default/gemstone’: handler import-cluster: Get “https://10.43.103.90/k8s/clusters/c-m-q9w5kcnc/version?timeout=15s”: dial tcp 10.43.103.90:443: connect: connection refused, requeuing”
Thu, Jun 8 2023 4:02:19 pm time=“2023-06-08T08:02:19Z” level=error msg=“error syncing ‘fleet-default/gemstone’: handler import-cluster: Get “https://10.43.103.90/k8s/clusters/c-m-q9w5kcnc/version?timeout=15s”: dial tcp 10.43.103.90:443: connect: connection refused, requeuing”