操作系统信息
Ubuntu 24.04 4c8g
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
# crictl version
Version: 0.1.0
RuntimeName: containerd
RuntimeVersion: v1.7.13
RuntimeApiVersion: v1
KubeSphere版本信息
v4.1.1
安装命令如下,helm安装kubesphere时修改默认的镜像拉取地址
export KKZONE=cn
curl -sfL https://get-kk.kubesphere.io | sh -
./kk create cluster --with-local-storage --with-kubernetes v1.31.0 --container-manager containerd -y
helm upgrade --install -n kubesphere-system --create-namespace ks-core https://charts.kubesphere.io/main/ks-core-1.1.1.tgz --debug --wait --set global.imageRegistry=swr.cn-southwest-2.myhuaweicloud.com/ks
镜像拉取失败,已经设置默认拉取镜像地址,但是在安装devops扩展组件的时候拉取镜像的地址还是走docker.io下载
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedMount 54m (x61 over 174m) kubelet MountVolume.SetUp failed for volume "kube-api-access-85tw5" : failed to fetch token: serviceaccounts "devops" not found
Warning FailedMount 39m (x93 over 3h32m) kubelet MountVolume.SetUp failed for volume "kubesphere-config" : configmap "devops-config" not found
Warning Failed 29m (x41 over 3h24m) kubelet (combined from similar events): Failed to pull image "docker.io/kubesphere/devops-apiserver:v4.1.2": rpc error: code = DeadlineExceeded desc = failed to pull and unpack image "docker.io/kubesphere/devops-apiserver:v4.1.2": failed to resolve reference "docker.io/kubesphere/devops-apiserver:v4.1.2": failed to do request: Head "https://registry-1.docker.io/v2/kubesphere/devops-apiserver/manifests/v4.1.2": dial tcp 199.96.62.41:443: i/o timeout
Normal BackOff 4m46s (x838 over 3h53m) kubelet Back-off pulling image "docker.io/kubesphere/devops-apiserver:v4.1.2"
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning Failed 8m42s (x102 over 6h57m) kubelet (combined from similar events): Failed to pull image "docker.io/kubesphere/kubectl:v1.27.4": rpc error: code = DeadlineExceeded desc = failed to pull and unpack image "docker.io/kubesphere/kubectl:v1.27.4": failed to resolve reference "docker.io/kubesphere/kubectl:v1.27.4": failed to do request: Head "https://registry-1.docker.io/v2/kubesphere/kubectl/manifests/v1.27.4": dial tcp 199.16.156.75:443: i/o timeout
Normal BackOff 3m51s (x1650 over 7h32m) kubelet Back-off pulling image "docker.io/kubesphere/kubectl:v1.27.4"