创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
4C/8G
Kubernetes版本信息
WARNING: This version information is deprecated and will be replaced with the output from kubectl version –short. Use –output=yaml|json to get the full version.
Client Version: version.Info{Major:“1”, Minor:“26”, GitVersion:“v1.26.0”, GitCommit:“b46a3f887ca979b1a5d14fd39cb1af43e7e5d12d”, GitTreeState:“clean”, BuildDate:“2022-12-08T19:58:30Z”, GoVersion:“go1.19.4”, Compiler:“gc”, Platform:“linux/amd64”}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:“1”, Minor:“28”, GitVersion:“v1.28.0”, GitCommit:“855e7c48de7388eb330da0f8d9d2394ee818fb8d”, GitTreeState:“clean”, BuildDate:“2023-08-15T10:15:54Z”, GoVersion:“go1.20.7”, Compiler:“gc”, Platform:“linux/amd64”}
WARNING: version difference between client (1.26) and server (1.28) exceeds the supported minor version skew of +/-1
容器运行时
ERRO[0000] validate service connection: validate CRI v1 runtime API for endpoint “unix:///var/run/dockershim.sock”: rpc error: code = Unavailable desc = connection error: desc = “transport: Error while dialing: dial unix /var/run/dockershim.sock: connect: no such file or directory”
Version: 0.1.0
RuntimeName: containerd
RuntimeVersion: 1.7.22
RuntimeApiVersion: v1
KubeSphere版本信息
K8s:v1.26.0 已有K8s上安装
问题是什么
安装kubesphere失败。
failed: [localhost] (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_groupbindings.yaml) => {“ansible_loop_var”: “item”, “changed”: true, “cmd”: “/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_groupbindings.yaml”, “delta”: “0:00:00.618252”, “end”: “2024-10-14 10:25:29.827012”, “item”: “/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_groupbindings.yaml”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2024-10-14 10:25:29.208760”, “stderr”: "Warning: resource customresourcedefinitions/groupbindings.iam.kubesphere.io is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create –save-config or kubectl apply. The missing annotation will be patched automatically.\nThe CustomResourceDefinition \“groupbindings.iam.kubesphere.io\” is invalid: status.storedVersions[0]: Invalid value: \“v1beta1\”: must appear in spec.versions", “stderr_lines”: [“Warning: resource customresourcedefinitions/groupbindings.iam.kubesphere.io is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create –save-config or kubectl apply. The missing annotation will be patched automatically.”, "The CustomResourceDefinition \“groupbindings.iam.kubesphere.io\” is invalid: status.storedVersions[0]: Invalid value: \“v1beta1\”: must appear in spec.versions"], “stdout”: "", “stdout_lines”: []}