创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。

操作系统信息
例如:虚拟机,Centos7.9,4C/16G

Kubernetes版本信息
kubectl version 命令执行结果贴在下方

容器运行时
docker version / crictl version / nerdctl version 结果贴在下方

KubeSphere版本信息
例如:v2.1.1/v3.0.0。离线安装还是在线安装。在已有K8s上安装还是使用kk安装。

问题是什么
我在v1.28.12kubernetes上 通过 kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.4.1/kubesphere-installer.yaml 命令先安装 这个版本的 /kubesphere-installer,

然后通过https://github.com/kubesphere/ks-installer/releases/download/v3.4.1/cluster-configuration.yaml下载默认的配置文件,在文件中开启了devops 和 metrics-server ,然后通过kubectl apply -f 命令安装 kubesphere,在安装过程中先发生了 devops认证书过期的问题,然后我在论坛上找到了解决方法 https://ask.kubesphere.com.cn/forum/d/23239-kubesphere-jing-xiang-gou-jian-qi-s2ifu-wu-zheng-shu-guo-qi-x509wen-ti ,然后

ks-apiserver发生了CrashLoopBackOff错误 错误详情如下:

[root@k8s-master ~]# kubectl logs -n kubesphere-system ks-apiserver-5b8969cb58-hnzdh

W0502 12:12:46.813696 1 client_config.go:615] Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work.

W0502 12:12:46.815817 1 client_config.go:615] Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work.

W0502 12:12:46.831733 1 options.go:191] ks-apiserver starts without redis provided, it will use in memory cache. This may cause inconsistencies when running ks-apiserver with multiple replicas.

I0502 12:12:46.831773 1 interface.go:50] start helm repo informer

I0502 12:12:47.515033 1 apiserver.go:417] Start cache objects

Error: failed to fetch group version resources batch/v1beta1: the server could not find the requested resource

2025/05/02 12:12:47 failed to fetch group version resources batch/v1beta1: the server could not find the requested resource,我在论坛上找了有人说是kubesphere问题 但网上又说这两个版本问题,求大神看看!!!