创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
8c16G
AlmaLinux release 9.2 (Turquoise Kodkod)
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
Client Version: v1.28.4
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.4
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
docker version
Client: Docker Engine - Community
Version: 24.0.6
API version: 1.43
Go version: go1.20.7
Git commit: ed223bc
Built: Mon Sep 4 12:33:18 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.6
API version: 1.43 (minimum version 1.12)
Go version: go1.20.7
Git commit: 1a79695
Built: Mon Sep 4 12:31:49 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.24
GitCommit: 61f9fd88f79f081d64d6fa3bb1a0dc71ec870523
runc:
Version: 1.1.9
GitCommit: v1.1.9-0-gccaecfc
docker-init:
Version: 0.19.0
GitCommit: de40ad0
KubeSphere版本信息
v3.0.0。在已有K8s上离线安装
问题是什么
报错日志:
TASK [ks-core/ks-core : KubeSphere | Importing ks-core status] *****************
FAILED - RETRYING: KubeSphere | Importing ks-core status (5 retries left).
FAILED - RETRYING: KubeSphere | Importing ks-core status (4 retries left).
FAILED - RETRYING: KubeSphere | Importing ks-core status (3 retries left).
FAILED - RETRYING: KubeSphere | Importing ks-core status (2 retries left).
FAILED - RETRYING: KubeSphere | Importing ks-core status (1 retries left).
fatal: [localhost]: FAILED! => {“attempts”: 5, “changed”: true, “cmd”: "/usr/local/bin/kubectl patch cc ks-installer –type merge -p ‘{\“status\”: {\“core\”: {\“status\”: \“enabled\”, \“enabledTime\”: \“2023-12-13T15:55:10CST\”}}}’ -n kubesphere-system\n", “delta”: “0:00:00.135062”, “end”: “2023-12-13 15:55:28.946920”, “failed_when_result”: true, “msg”: “non-zero return code”, “rc”: 1, “start”: “2023-12-13 15:55:28.811858”, “stderr”: "Error from server (NotFound): clustercidrs.networking.k8s.io \“ks-installer\” not found", “stderr_lines”: ["Error from server (NotFound): clustercidrs.networking.k8s.io \“ks-installer\” not found"], “stdout”: "", “stdout_lines”: []}
PLAY RECAP *********************************************************************
localhost : ok=20 changed=14 unreachable=0 failed=1 skipped=7 rescued=0 ignored=0