https://rancher.com/ logo
#k3s
Title
d

delightful-address-49392

01/31/2023, 6:28 AM
The following error occurred during startup,What caused it
Copy code
I0131 14:25:43.970982    9050 shared_informer.go:262] Caches are synced for certificate-csrsigning-kubelet-client
I0131 14:25:43.970965    9050 shared_informer.go:262] Caches are synced for certificate-csrsigning-kubelet-serving
I0131 14:25:44.022011    9050 shared_informer.go:262] Caches are synced for certificate-csrapproving
time="2023-01-31T14:25:44+08:00" level=info msg="Stop pulling image rancher/mirrored-metrics-server:v0.6.2: Status: Downloaded newer image for rancher/mirrored-metrics-server:v0.6.2"
I0131 14:25:44.350653    9050 shared_informer.go:262] Caches are synced for garbage collector
I0131 14:25:44.350669    9050 garbagecollector.go:163] Garbage collector: all resource monitors have synced. Proceeding to collect garbage
I0131 14:25:44.386944    9050 shared_informer.go:262] Caches are synced for garbage collector
W0131 14:25:44.864126    9050 handler_proxy.go:105] no RequestInfo found in the context
W0131 14:25:44.864125    9050 handler_proxy.go:105] no RequestInfo found in the context
E0131 14:25:44.864185    9050 controller.go:116] loading OpenAPI spec for "<http://v1beta1.metrics.k8s.io|v1beta1.metrics.k8s.io>" failed with: failed to retrieve openAPI spec, http error: ResponseCode: 503, Body: service unavailable
, Header: map[Content-Type:[text/plain; charset=utf-8] X-Content-Type-Options:[nosniff]]
E0131 14:25:44.864191    9050 controller.go:113] loading OpenAPI spec for "<http://v1beta1.metrics.k8s.io|v1beta1.metrics.k8s.io>" failed with: Error, could not get list of group versions for APIService
I0131 14:25:44.864196    9050 controller.go:129] OpenAPI AggregationController: action for item <http://v1beta1.metrics.k8s.io|v1beta1.metrics.k8s.io>: Rate Limited Requeue.
I0131 14:25:44.865275    9050 controller.go:126] OpenAPI AggregationController: action for item <http://v1beta1.metrics.k8s.io|v1beta1.metrics.k8s.io>: Rate Limited Requeue.
time="2023-01-31T14:25:45+08:00" level=info msg="Using CNI configuration file /var/lib/rancher/k3s/agent/etc/cni/net.d/10-flannel.conflist"
c

creamy-pencil-82913

01/31/2023, 8:47 PM
that error is normal to see until the metrics-server pod starts. Is there some specific problem you’re trying to troubleshoot?
d

delightful-address-49392

02/01/2023, 6:48 AM
Yes, I made an error when installing the agent
Copy code
I0201 14:46:14.410893   18831 container_manager_linux.go:267] "Creating Container Manager object based on Node Config" nodeConfig={RuntimeCgroupsName: SystemCgroupsName: KubeletCgroupsName: KubeletOOMScoreAdj:-999 ContainerRuntime: CgroupsPerQOS:true CgroupRoot:/ CgroupDriver:cgroupfs KubeletRootDir:/var/lib/kubelet ProtectKernelDefaults:false NodeAllocatableConfig:{KubeReservedCgroupName: SystemReservedCgroupName: ReservedSystemCPUs: EnforceNodeAllocatable:map[pods:{}] KubeReserved:map[] SystemReserved:map[] HardEvictionThresholds:[{Signal:imagefs.available Operator:LessThan Value:{Quantity:<nil> Percentage:0.05} GracePeriod:0s MinReclaim:<nil>} {Signal:nodefs.available Operator:LessThan Value:{Quantity:<nil> Percentage:0.05} GracePeriod:0s MinReclaim:<nil>}]} QOSReserved:map[] ExperimentalCPUManagerPolicy:none ExperimentalCPUManagerPolicyOptions:map[] ExperimentalTopologyManagerScope:container ExperimentalCPUManagerReconcilePeriod:10s ExperimentalMemoryManagerPolicy:None ExperimentalMemoryManagerReservedMemory:[] ExperimentalPodPidsLimit:-1 EnforceCPULimits:true CPUCFSQuotaPeriod:100ms ExperimentalTopologyManagerPolicy:none}
I0201 14:46:14.410919   18831 topology_manager.go:134] "Creating topology manager with policy per scope" topologyPolicyName="none" topologyScopeName="container"
I0201 14:46:14.410934   18831 container_manager_linux.go:302] "Creating device plugin manager" devicePluginEnabled=true
I0201 14:46:14.410977   18831 state_mem.go:36] "Initialized new in-memory state store"
Error: failed to run Kubelet: unable to determine runtime API version: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial unix /run/k3s/cri-dockerd/cri-dockerd.sock: connect: connection refused"
time="2023-02-01T14:46:14+08:00" level=fatal msg="kubelet exited: failed to run Kubelet: unable to determine runtime API version: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /run/k3s/cri-dockerd/cri-dockerd.sock: connect: connection refused\""
My startup command is:
Copy code
curl -sfL <https://rancher-mirror.rancher.cn/k3s/k3s-install.sh> | INSTALL_K3S_MIRROR=cn K3S_URL=<https://10.7.3.235:6443> K3S_TOKEN=T6ua81CEypNpTBXnVVpd \
K3S_NODE_NAME=id-test-it-kubernetes-10.7.4.4-master02 INSTALL_K3S_BIN_DIR=/xj-data/k3s/bin/ \
INSTALL_K3S_EXEC="-v 2 --log /xj-data/logs/k3s/k3s_agent.log --data-dir /xj-data/k3s/data-agent --lb-server-port 6445 --docker" \
sh -
image.png
242 Views