创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
阿里云,Ubuntu20.04.3,4C/16G
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
Client Version: version.Info{Major:“1”, Minor:“22”, GitVersion:“v1.22.12”, GitCommit:“b058e1760c79f46a834ba59bd7a3486ecf28237d”, GitTreeState:“clean”, BuildDate:“2022-07-13T14:59:18Z”, GoVersion:“go1.16.15”, Compiler:“gc”, Platform:“linux/amd64”}
Server Version: version.Info{Major:“1”, Minor:“22”, GitVersion:“v1.22.12”, GitCommit:“b058e1760c79f46a834ba59bd7a3486ecf28237d”, GitTreeState:“clean”, BuildDate:“2022-07-13T14:53:39Z”, GoVersion:“go1.16.15”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
docker version
Client: Docker Engine - Community
Version: 20.10.10
API version: 1.41
Go version: go1.16.9
Git commit: b485636
Built: Mon Oct 25 07:42:59 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.10
API version: 1.41 (minimum version 1.12)
Go version: go1.16.9
Git commit: e2f740d
Built: Mon Oct 25 07:41:08 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.11
GitCommit: 5b46e404f6b9f661a205e28d59c982d3634148f8
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2
docker-init:
Version: 0.19.0
GitCommit: de40ad0
KubeSphere版本信息
v1.22.12 /v3.3.1。在线安装。使用kk安装。
问题是什么
报错日志是什么,最好有截图。
[bootstrap-token] Creating the "cluster-info" ConfigMap in the "kube-public" namespace
[kubelet-finalize] Updating "/etc/kubernetes/kubelet.conf" to point to a rotatable kubelet client certificate and key
[addons] Applied essential addon: CoreDNS
[addons] Applied essential addon: kube-proxy
Your Kubernetes control-plane has initialized successfully!
To start using your cluster, you need to run the following as a regular user:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
Alternatively, if you are the root user, you can run:
export KUBECONFIG=/etc/kubernetes/admin.conf
You should now deploy a pod network to the cluster.
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
https://kubernetes.io/docs/concepts/cluster-administration/addons/
You can now join any number of control-plane nodes by copying certificate authorities
and service account keys on each node and then running the following as root:
kubeadm join lb.kubesphere.local:6443 --token jxzd3p.h29xyrk9cdqsjgf1 \
--discovery-token-ca-cert-hash sha256:b27eb2ca3538c3640e595c757e05635069ec92b8d6fd9eb5d7c1fb746cea7770 \
--control-plane
Then you can join any number of worker nodes by running the following on each as root:
kubeadm join lb.kubesphere.local:6443 --token jxzd3p.h29xyrk9cdqsjgf1 \
--discovery-token-ca-cert-hash sha256:b27eb2ca3538c3640e595c757e05635069ec92b8d6fd9eb5d7c1fb746cea7770
21:56:25 CST success: [iZuf6ffajhlqk1sptlrdteZ]
21:56:25 CST [InitKubernetesModule] Copy admin.conf to ~/.kube/config
21:56:25 CST success: [iZuf6ffajhlqk1sptlrdteZ]
21:56:25 CST [InitKubernetesModule] Remove master taint
21:56:25 CST stdout: [iZuf6ffajhlqk1sptlrdteZ]
Error from server (NotFound): nodes "iZuf6ffajhlqk1sptlrdteZ" not found
21:56:25 CST [WARN] Failed to exec command: sudo -E /bin/bash -c "/usr/local/bin/kubectl taint nodes iZuf6ffajhlqk1sptlrdteZ node-role.kubernetes.io/master=:NoSchedule-"
Error from server (NotFound): nodes "iZuf6ffajhlqk1sptlrdteZ" not found: Process exited with status 1

已经使用 /kk delete cluster 命令尝试重新安装过。并清空~ ./kube 目录,重新安装。报错信息相同。