我正在尝试设置一个裸机 Kubernetes 服务器,包括 metallb LoadBalancer。因此,我遵循了该项目网站上发布的说明https://kind.sigs.k8s.io/docs/user/loadbalancer/。为了测试我的安装,我尝试部署默认的nginx网络服务器并通过浏览器访问它。不幸的是,创建的 LoadBalancer 类型的服务卡在 上EXTERNAL IP <Pending>。我将附上尽可能多的信息。我希望有人能帮助我解决这个问题。如果您需要更多信息,请告诉我。
这就是我所做的:
https://kind.sigs.k8s.io/docs/user/loadbalancer/kubectl create deployment nginx --image nginxkubectl expose deployment/nginx --type="LoadBalancer" --port 8080$ kubectl version --short
Client Version: v1.20.2
Server Version: v1.20.2
$ kubectl get nodes -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
gemini Ready control-plane,master 3d v1.20.2 192.168.2.203 <none> Ubuntu 20.10 5.8.0-1013-raspi docker://19.3.13
phoenix Ready <none> 2d23h …Run Code Online (Sandbox Code Playgroud) 我正在尝试为我的 kubernetes 集群设置一个kind集群。不幸的是,在写入节点时准备好节点后失败了。我将附上输出和一些信息。预先感谢您的任何帮助!
干杯
\n$ kind create cluster --config kind-config.yaml \n\nCreating cluster "kind" ...\n \xe2\x9c\x93 Ensuring node image (kindest/node:v1.20.2) \n \xe2\x9c\x93 Preparing nodes \n \xe2\x9c\x97 Writing configuration \nERROR: failed to create cluster: failed to generate kubeadm config content: failed to get kubernetes version from node: failed to get file: command "docker exec --privileged kind-worker3 cat /kind/version" failed with error: exit status 1\nCommand Output: Error response from daemon: Container c41566958be2239a9470ef2ea636c4b21958ee7620086f526954a02e4a605106 is not running\nRun Code Online (Sandbox Code Playgroud)\n