2、rancher server 的日志
[root@rancher-30 ~]# kubectl -n cattle-system logs -f rancher-6bbb576fc7-q9td6
Doing /etc/rancher/ssl
2024/11/30 19:00:41 [INFO] Rancher version v2.8.5 (7af1354e9) is starting
2024/11/30 19:00:41 [INFO] Rancher arguments {ACMEDomains:[] AddLocal:true Embedded:false BindHost: HTTPListenPort:80 HTTPSListenPort:443 K8sMode:auto Debug:false Trace:false NoCACerts:false AuditLogPath:/var/log/auditlog/rancher-api-audit.log AuditLogMaxage:10 AuditLogMaxsize:100 AuditLogMaxbackup:10 AuditLevel:0 Features: ClusterRegistry:}
2024/11/30 19:00:41 [INFO] Listening on /tmp/log.sock
2024/11/30 19:00:41 [INFO] Running in clustered mode with ID 10.42.0.21, monitoring endpoint cattle-system/rancher
2024/11/30 19:00:41 [INFO] Applying CRD features.management.cattle.io
2024/11/30 19:00:42 [INFO] Updating embedded CRD clusterroletemplatebindings.management.cattle.io
2024/11/30 19:00:42 [INFO] Updating embedded CRD globalroles.management.cattle.io
2024/11/30 19:00:42 [INFO] Updating embedded CRD globalrolebindings.management.cattle.io
2024/11/30 19:00:42 [INFO] Updating embedded CRD projects.management.cattle.io
2024/11/30 19:00:42 [INFO] Updating embedded CRD projectroletemplatebindings.management.cattle.io
2024/11/30 19:00:42 [INFO] Updating embedded CRD roletemplates.management.cattle.io
2024/11/30 19:00:43 [INFO] Applying CRD navlinks.ui.cattle.io
2024/11/30 19:00:43 [INFO] Applying CRD podsecurityadmissionconfigurationtemplates.management.cattle.io
2024/11/30 19:00:43 [INFO] Applying CRD clusters.management.cattle.io
2024/11/30 19:00:43 [INFO] Applying CRD apiservices.management.cattle.io
2024/11/30 19:00:43 [INFO] Applying CRD clusterregistrationtokens.management.cattle.io
2024/11/30 19:00:43 [INFO] Applying CRD settings.management.cattle.io
2024/11/30 19:00:43 [INFO] Applying CRD preferences.management.cattle.io
2024/11/30 19:00:43 [INFO] Applying CRD features.management.cattle.io
2024/11/30 19:00:43 [INFO] Applying CRD clusterrepos.catalog.cattle.io
2024/11/30 19:00:43 [INFO] Applying CRD operations.catalog.cattle.io
2024/11/30 19:00:43 [INFO] Applying CRD apps.catalog.cattle.io
2024/11/30 19:00:44 [INFO] Applying CRD fleetworkspaces.management.cattle.io
2024/11/30 19:00:44 [INFO] Applying CRD managedcharts.management.cattle.io
2024/11/30 19:00:44 [INFO] Applying CRD clusters.provisioning.cattle.io
2024/11/30 19:00:44 [INFO] Applying CRD clusters.provisioning.cattle.io
2024/11/30 19:00:44 [INFO] Applying CRD rkeclusters.rke.cattle.io
2024/11/30 19:00:44 [INFO] Applying CRD rkecontrolplanes.rke.cattle.io
2024/11/30 19:00:45 [INFO] Applying CRD rkebootstraps.rke.cattle.io
2024/11/30 19:00:45 [INFO] Applying CRD rkebootstraptemplates.rke.cattle.io
2024/11/30 19:00:45 [INFO] Applying CRD rkecontrolplanes.rke.cattle.io
2024/11/30 19:00:45 [INFO] Applying CRD custommachines.rke.cattle.io
2024/11/30 19:00:45 [INFO] Applying CRD etcdsnapshots.rke.cattle.io
2024/11/30 19:00:45 [INFO] Applying CRD clusters.cluster.x-k8s.io
2024/11/30 19:00:45 [INFO] Applying CRD machinedeployments.cluster.x-k8s.io
2024/11/30 19:00:45 [INFO] Applying CRD machinehealthchecks.cluster.x-k8s.io
2024/11/30 19:00:45 [INFO] Applying CRD machines.cluster.x-k8s.io
2024/11/30 19:00:45 [INFO] Applying CRD machinesets.cluster.x-k8s.io
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=Token controller
2024/11/30 19:01:07 [INFO] Starting rbac.authorization.k8s.io/v1, Kind=ClusterRole controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=MultiClusterApp controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=NodeTemplate controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=Setting controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=Node controller
2024/11/30 19:01:07 [INFO] Starting /v1, Kind=Namespace controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=RoleTemplate controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=APIService controller
2024/11/30 19:01:07 [INFO] Starting rbac.authorization.k8s.io/v1, Kind=ClusterRoleBinding controller
2024/11/30 19:01:07 [INFO] Starting project.cattle.io/v3, Kind=App controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=CatalogTemplateVersion controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=RkeAddon controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=Catalog controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=ClusterRoleTemplateBinding controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=DynamicSchema controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=GlobalRoleBinding controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=RkeK8sServiceOption controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=ProjectCatalog controller
2024/11/30 19:01:07 [INFO] Starting API controllers
2024/11/30 19:01:07 [INFO] Starting catalog.cattle.io/v1, Kind=ClusterRepo controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=ClusterTemplateRevision controller
2024/11/30 19:01:07 [INFO] Starting apiextensions.k8s.io/v1, Kind=CustomResourceDefinition controller
2024/11/30 19:01:07 [INFO] Starting cluster.x-k8s.io/v1beta1, Kind=Machine controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=Feature controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=CatalogTemplate controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=NodeDriver controller
2024/11/30 19:01:07 [INFO] Starting rbac.authorization.k8s.io/v1, Kind=RoleBinding controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=GroupMember controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=ClusterRegistrationToken controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=AuthConfig controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=GlobalDns controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=ClusterCatalog controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=Preference controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=UserAttribute controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=User controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=PodSecurityPolicyTemplateProjectBinding controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=Project controller
2024/11/30 19:01:07 [INFO] Starting /v1, Kind=Secret controller
2024/11/30 19:01:07 [INFO] Starting /v1, Kind=ServiceAccount controller
2024/11/30 19:01:07 [INFO] Starting provisioning.cattle.io/v1, Kind=Cluster controller
2024/11/30 19:01:07 [INFO] Starting /v1, Kind=Endpoints controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=RkeK8sSystemImage controller
2024/11/30 19:01:07 [INFO] Starting rbac.authorization.k8s.io/v1, Kind=Role controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=Cluster controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=KontainerDriver controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=Group controller
I1130 19:01:07.266042 40 leaderelection.go:250] attempting to acquire leader lease kube-system/cattle-controllers...
2024/11/30 19:01:07 [INFO] Starting rke.cattle.io/v1, Kind=RKEBootstrap controller
2024/11/30 19:01:07 [INFO] Starting /v1, Kind=ConfigMap controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=GlobalRole controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=PodSecurityPolicyTemplate controller
2024/11/30 19:01:07 [INFO] Adding peer wss://10.42.0.22/v3/connect, 10.42.0.22
2024/11/30 19:01:07 [INFO] Adding peer wss://10.42.0.23/v3/connect, 10.42.0.23
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=MultiClusterAppRevision controller
2024/11/30 19:01:07 [INFO] Starting apiregistration.k8s.io/v1, Kind=APIService controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=NodePool controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=ProjectRoleTemplateBinding controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=ClusterTemplate controller
2024/11/30 19:01:07 [ERROR] Failed to connect to peer wss://10.42.0.22/v3/connect [local ID=10.42.0.21]: dial tcp 10.42.0.22:443: connect: connection refused
2024/11/30 19:01:07 [ERROR] Failed syncing peers [{10.42.0.21 [10.42.0.22 10.42.0.23] true false}]: failed to start user controllers for cluster c-m-s4nlmmqq: ClusterUnavailable 503: cluster not found
2024/11/30 19:01:07 [ERROR] error syncing '_all_': handler user-controllers-controller: userControllersController: failed to set peers for key _all_: failed to start user controllers for cluster c-m-s4nlmmqq: ClusterUnavailable 503: cluster not found, requeuing
2024/11/30 19:01:07 [ERROR] error syncing '_all_': handler user-controllers-controller: userControllersController: failed to set peers for key _all_: failed to start user controllers for cluster c-m-s4nlmmqq: ClusterUnavailable 503: cluster not found, requeuing
2024/11/30 19:01:07 [INFO] Starting cluster controllers for local
2024/11/30 19:01:07 [ERROR] error syncing '_all_': handler user-controllers-controller: userControllersController: failed to set peers for key _all_: failed to start user controllers for cluster c-m-s4nlmmqq: ClusterUnavailable 503: cluster not found, requeuing
2024/11/30 19:01:07 [INFO] Starting /v1, Kind=Secret controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=Cluster controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=GroupMember controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=Group controller
2024/11/30 19:01:07 [INFO] Starting /v1, Kind=ConfigMap controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=Token controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=User controller
2024/11/30 19:01:07 [INFO] Starting management.cattle.io/v3, Kind=UserAttribute controller
2024/11/30 19:01:07 [ERROR] error syncing '_all_': handler user-controllers-controller: userControllersController: failed to set peers for key _all_: failed to start user controllers for cluster c-m-s4nlmmqq: ClusterUnavailable 503: cluster not found, requeuing
2024/11/30 19:01:07 [INFO] Active TLS secret cattle-system/serving-cert (ver=500335) (count 8): map[field.cattle.io/projectId:local:p-42zvc listener.cattle.io/cn-10.42.0.21:10.42.0.21 listener.cattle.io/cn-10.42.0.22:10.42.0.22 listener.cattle.io/cn-10.42.0.23:10.42.0.23 listener.cattle.io/cn-127.0.0.1:127.0.0.1 listener.cattle.io/cn-localhost:localhost listener.cattle.io/cn-rancher-30.lakalajr.com:rancher-30.lakalajr.com listener.cattle.io/cn-rancher.cattle-system:rancher.cattle-system listener.cattle.io/fingerprint:SHA1=0EB6575726DE013C97E0EA471A29E6088D029D56]
2024/11/30 19:01:07 [INFO] Listening on :443