Using kubeconfig folder "/etc/kubernetes" Writing "nf" kubeconfig file Writing "nf" kubeconfig file Writing "nf" kubeconfig file Writing "nf" kubeconfig file Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env" Writing kubelet configuration to file "/var/lib/kubelet/config.yaml" Starting the kubelet Generating "apiserver-etcd-client" certificate and key etcd/peer serving cert is signed for DNS names and IPs Generating "etcd/healthcheck-client" certificate and key etcd/server serving cert is signed for DNS names and IPs Generating "etcd/peer" certificate and key Generating "etcd/server" certificate and key Generating "etcd/ca" certificate and key Generating "front-proxy-client" certificate and key Generating "front-proxy-ca" certificate and key apiserver serving cert is signed for DNS names and IPs Generating "apiserver-kubelet-client" certificate and key Generating "apiserver" certificate and key Using certificateDir folder "/etc/kubernetes/pki" Generating "ca" certificate and key It is recommended that using "/google_containers/pause:3.9" as the CRI sandbox image. W0505 17:23:28.650501 122362 checks.go:835 ] detected that the sandbox image "k8simage/pause:3.6" of the container runtime is inconsistent with that used by kubeadm. W0505 17:22:58.771300 122362 images.go:80 ] could not find officially supported version of etcd for Kubernetes v1.27.1, falling back to the nearest etcd version ( 3.5.7-0 ) You can also perform this action in beforehand using 'kubeadm config images pull' This might take a minute or two, depending on the speed of your internet connection Pulling images required for setting up a Kubernetes cluster : swap is enabled production deployments should disable swap unless testing the NodeSwap feature gate of the kubelet 具体执行信息: ~ ] # kubeadm init -image-repository=/google_containers Using Kubernetes version: v1.27.1 我在部署k8s集群使用kubeadm初始化报如下错误: The HTTP call equal to 'curl -sSL failed with error: Get " : dial tcp 127.0.0.1:10248: connect: connection refused.ĭocker的cgroup驱动程序默认设置为system。默认情况下Kubernetes cgroup为systemd,我们需要更改Docker cgroup驱动 成功解决: Get “ dial tcp :10248: connect: connection refused.
0 Comments
Leave a Reply. |