After kube-apiserver is started, it keeps reporting errors

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version: 1.34.1
Cloud being used:
Installation method: kubeadm
Host OS: almalinux 9.6
CNI and version: 1.7.1
CRI and version: 1.7.28

It works fine except that the following log is printed:

kube-apiserver[3050]: W0915 21:58:51.316471 3050 logging.go:55] [core] [Channel #464 SubChannel #465]grpc: addrConn.createTransport failed to connect to {Addr: “172.16.1.10:2379”, ServerName: “172.16.1.10:2379”, BalancerAttributes: {“<%!p(pickfirstleaf.managedByPickfirstKeyType={})>”: “<%!p(bool=true)>” }}. Err: connection error: desc = “transport: Error while dialing: dial tcp 172.16.1.10:2379: operation was canceled”

Hi,

Looks like kube-api is not able to reach etcd by some reason.

Make sure etcd is up and running before starting kube-api

etcd is running normally, and the k8s cluster is in normal use. Except for the kube-apiserver reporting this error, no other abnormalities were found during use.

Hi

Are there multiple etcd nodes, and is the error occurring on one of them? “172.16.1.10”

No, there is only one node.