创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如: DOCKER DESKTOP
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:“25”, GitVersion:“v1.25.9”, GitCommit:“a1a87a0a2bcd605820920c6b0e618a8ab7d117d4”, GitTreeState:“clean”, BuildDate:“2023-04-12T12:16:51Z”, GoVersion:“go1.19.8”, Compiler:“gc”, Platform:“windows/amd64”}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:“1”, Minor:“25”, GitVersion:“v1.25.9”, GitCommit:“a1a87a0a2bcd605820920c6b0e618a8ab7d117d4”, GitTreeState:“clean”, BuildDate:“2023-04-12T12:08:36Z”, GoVersion:“go1.19.8”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
Client:
Cloud integration: v1.0.31
Version: 23.0.5
API version: 1.42
Go version: go1.19.8
Git commit: bc4487a
Built: Wed Apr 26 16:20:14 2023
OS/Arch: windows/amd64
Context: default
Server: Docker Desktop 4.19.0 (106363)
Engine:
Version: 23.0.5
API version: 1.42 (minimum version 1.12)
Go version: go1.19.8
Git commit: 94d3ad6
Built: Wed Apr 26 16:17:45 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.20
GitCommit: 2806fc1057397dbaeefbea0e4e17bddfbd388f38
runc:
Version: 1.1.5
GitCommit: v1.1.5-0-gf19387a
docker-init:
Version: 0.19.0
GitCommit: de40ad0
KubeSphere版本信息
3.2.1。在已有K8s上安装
问题是什么
安装monitoring模块会报错
2023-05-31 15:48:48 PLAY RECAP *********************************************************************
2023-05-31 15:48:48 localhost : ok=25 changed=19 unreachable=0 failed=0 skipped=22 rescued=0 ignored=0
2023-05-31 15:53:23
2023-05-31 15:53:23
2023-05-31 15:53:23 Task ‘monitoring’ failed:
…
2023-05-31 15:53:23 “invocation”: {
2023-05-31 15:53:23 “module_args”: {
2023-05-31 15:53:23 “_raw_params”: “/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/prometheus/prometheus”,
2023-05-31 15:53:23 “_uses_shell”: true,
2023-05-31 15:53:23 “argv”: null,
2023-05-31 15:53:23 “chdir”: null,
2023-05-31 15:53:23 “creates”: null,
2023-05-31 15:53:23 “executable”: null,
2023-05-31 15:53:23 “removes”: null,
2023-05-31 15:53:23 “stdin”: null,
2023-05-31 15:53:23 “stdin_add_newline”: true,
2023-05-31 15:53:23 “strip_empty_ends”: true,
2023-05-31 15:53:23 “warn”: true
2023-05-31 15:53:23 }
2023-05-31 15:53:23 },
2023-05-31 15:53:23 “item”: “prometheus”,
2023-05-31 15:53:23 “msg”: “non-zero return code”,
2023-05-31 15:53:23 “rc”: 1,
2023-05-31 15:53:23 “start”: “2023-05-31 07:52:16.872075”,
2023-05-31 15:53:23 “stderr”: “error: unable to recognize \”/kubesphere/kubesphere/prometheus/prometheus/prometheus-podDisruptionBudget.yaml\": no matches for kind \“PodDisruptionBudget\” in version \“policy/v1beta1\”",
2023-05-31 15:53:23 “stderr_lines”: [
2023-05-31 15:53:23 “error: unable to recognize \”/kubesphere/kubesphere/prometheus/prometheus/prometheus-podDisruptionBudget.yaml\": no matches for kind \“PodDisruptionBudget\” in version \“policy/v1beta1\”"
2023-05-31 15:53:23 ],
2023-05-31 15:53:23 “stdout”: “clusterrole.rbac.authorization.k8s.io/kubesphere-prometheus-k8s unchanged\nclusterrolebinding.rbac.authorization.k8s.io/kubesphere-prometheus-k8s unchanged\nprometheus.monitoring.coreos.com/k8s unchanged\nprometheusrule.monitoring.coreos.com/prometheus-k8s-prometheus-rules unchanged\nrolebinding.rbac.authorization.k8s.io/prometheus-k8s-config unchanged\nrole.rbac.authorization.k8s.io/prometheus-k8s-config unchanged\nservice/prometheus-k8s unchanged\nserviceaccount/prometheus-k8s unchanged\nservicemonitor.monitoring.coreos.com/prometheus-k8s unchanged”,
2023-05-31 15:53:23 “stdout_lines”: [
2023-05-31 15:53:23 “clusterrole.rbac.authorization.k8s.io/kubesphere-prometheus-k8s unchanged”,