Open willzhang opened 1 year ago
kubernetes v1.25.6 install monitoring failed.
PodDisruptionBudget Deprecated in v1.21+, unavailable in v1.25+
PLAY RECAP ********************************************************************* localhost : ok=25 changed=19 unreachable=0 failed=0 skipped=22 rescued=0 ignored=0 Start installing monitoring Start installing multicluster Start installing openpitrix Start installing network ************************************************** Waiting for all tasks to be completed ... task network status is successful (1/4) task openpitrix status is successful (2/4) task multicluster status is successful (3/4) task monitoring status is failed (4/4) ************************************************** Collecting installation results ... Task 'monitoring' failed: ****************************************************************************************************************************************************** { "counter": 117, "created": "2023-02-25T13:27:29.066038", "end_line": 112, "event": "runner_on_failed", "event_data": { "duration": 48.579448, "end": "2023-02-25T13:27:29.065930", "event_loop": null, "host": "localhost", "ignore_errors": null, "play": "localhost", "play_pattern": "localhost", "play_uuid": "4ab63483-389f-b370-0f05-000000000005", "playbook": "/kubesphere/playbooks/monitoring.yaml", "playbook_uuid": "8f74d6f5-ac44-40f4-bc7a-066ebc3e89dd", "remote_addr": "127.0.0.1", "res": { "changed": true, "msg": "All items completed", "results": [ { "_ansible_item_label": "prometheus", "_ansible_no_log": false, "ansible_loop_var": "item", "attempts": 5, "changed": true, "cmd": "/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/prometheus/prometheus", "delta": "0:00:01.111142", "end": "2023-02-25 21:27:04.793294", "failed": true, "failed_when_result": true, "invocation": { "module_args": { "_raw_params": "/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/prometheus/prometheus", "_uses_shell": true, "argv": null, "chdir": null, "creates": null, "executable": null, "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true, "warn": true } }, "item": "prometheus", "msg": "non-zero return code", "rc": 1, "start": "2023-02-25 21:27:03.682152", "stderr": "error: unable to recognize \"/kubesphere/kubesphere/prometheus/prometheus/prometheus-podDisruptionBudget.yaml\": no matches for kind \"PodDisruptionBudget\" in version \"policy/v1beta1\"", "stderr_lines": [ "error: unable to recognize \"/kubesphere/kubesphere/prometheus/prometheus/prometheus-podDisruptionBudget.yaml\": no matches for kind \"PodDisruptionBudget\" in version \"policy/v1beta1\"" ], "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", "stdout_lines": [ "clusterrole.rbac.authorization.k8s.io/kubesphere-prometheus-k8s unchanged", "clusterrolebinding.rbac.authorization.k8s.io/kubesphere-prometheus-k8s unchanged", "prometheus.monitoring.coreos.com/k8s unchanged", "prometheusrule.monitoring.coreos.com/prometheus-k8s-prometheus-rules unchanged", "rolebinding.rbac.authorization.k8s.io/prometheus-k8s-config unchanged", "role.rbac.authorization.k8s.io/prometheus-k8s-config unchanged", "service/prometheus-k8s unchanged", "serviceaccount/prometheus-k8s unchanged", "servicemonitor.monitoring.coreos.com/prometheus-k8s unchanged" ] }, { "_ansible_item_label": "prometheus", "_ansible_no_log": false, "ansible_loop_var": "item", "attempts": 5, "changed": true, "cmd": "/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/prometheus/prometheus", "delta": "0:00:01.021296", "end": "2023-02-25 21:27:28.995579", "failed": true, "failed_when_result": true, "invocation": { "module_args": { "_raw_params": "/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/prometheus/prometheus", "_uses_shell": true, "argv": null, "chdir": null, "creates": null, "executable": null, "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true, "warn": true } }, "item": "prometheus", "msg": "non-zero return code", "rc": 1, "start": "2023-02-25 21:27:27.974283", "stderr": "error: unable to recognize \"/kubesphere/kubesphere/prometheus/prometheus/prometheus-podDisruptionBudget.yaml\": no matches for kind \"PodDisruptionBudget\" in version \"policy/v1beta1\"", "stderr_lines": [ "error: unable to recognize \"/kubesphere/kubesphere/prometheus/prometheus/prometheus-podDisruptionBudget.yaml\": no matches for kind \"PodDisruptionBudget\" in version \"policy/v1beta1\"" ], "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", "stdout_lines": [ "clusterrole.rbac.authorization.k8s.io/kubesphere-prometheus-k8s unchanged", "clusterrolebinding.rbac.authorization.k8s.io/kubesphere-prometheus-k8s unchanged", "prometheus.monitoring.coreos.com/k8s unchanged", "prometheusrule.monitoring.coreos.com/prometheus-k8s-prometheus-rules unchanged", "rolebinding.rbac.authorization.k8s.io/prometheus-k8s-config unchanged", "role.rbac.authorization.k8s.io/prometheus-k8s-config unchanged", "service/prometheus-k8s unchanged", "serviceaccount/prometheus-k8s unchanged", "servicemonitor.monitoring.coreos.com/prometheus-k8s unchanged" ] } ] }, "resolved_action": "shell", "role": "ks-monitor", "start": "2023-02-25T13:26:40.486482", "task": "Monitoring | Installing Prometheus", "task_action": "shell", "task_args": "", "task_path": "/kubesphere/installer/roles/ks-monitor/tasks/prometheus.yaml:2", "task_uuid": "4ab63483-389f-b370-0f05-000000000042", "uuid": "9c830ccf-b367-4618-9747-75d16298d73c" }, "parent_uuid": "4ab63483-389f-b370-0f05-000000000042", "pid": 3294, "runner_ident": "monitoring", "start_line": 112, "stdout": "", "uuid": "9c830ccf-b367-4618-9747-75d16298d73c" } ******************************************************************************************************************************************************
https://kubesphere.io/forum/d/9338-kubesphere/7
kubernetes v1.25.6 install monitoring failed.
PodDisruptionBudget Deprecated in v1.21+, unavailable in v1.25+