创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
物理机,Ubuntu22.04,8C/32G
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
docker version
:
Client:
Version: 20.10.8
API version: 1.41
Go version: go1.16.6
Git commit: 3967b7d
Built: Fri Jul 30 19:50:40 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get “http://%2Fvar%2Frun%2Fdocker.sock/v1.24/version”: dial unix /var/run/docker.sock: connect: permission denied
KubeSphere版本信息
v1.22.12/v3.3.2,使用kk安装 all-in-one模式
问题是什么
使用sudo ./kk create cluster –with-kubernetes v1.21.12 –with-kubesphere v3.3.2命令后,显示cat: /etc/kubernetes/manifests/kube-apiserver.yaml: 没有那个文件或目录
日志如下:
14:43:54 CST stdout: [idtgz-gs]
cat: /etc/kubernetes/manifests/kube-apiserver.yaml: 没有那个文件或目录
14:43:54 CST stdout: [idtgz-gs]
The connection to the server lb.kubesphere.local:6443 was refused - did you specify the right host or port?
14:43:54 CST message: [idtgz-gs]
get kubernetes cluster info failed: Failed to exec command: sudo -E /bin/bash -c “/usr/local/bin/kubectl –no-headers=true get nodes -o custom-columns=:metadata.name,:status.nodeInfo.kubeletVersion,:status.addresses”
The connection to the server lb.kubesphere.local:6443 was refused - did you specify the right host or port?: Process exited with status 1
请求大佬们帮忙看看