安装命令:
./kk create cluster --with-kubernetes v1.20.4 --with-kubesphere v3.1.0
安装完成后,执行验证命令出错,命令如下:
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
错误详情:
fatal: [localhost]: FAILED! => {\"changed\": true, \"cmd\": \"/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/prometheus/alertmanager\", \"delta\": \"0:02:18.885129\", \"end\": \"2021-06-21 07:06:17.485805\", \"msg\": \"non-zero return code\", \"rc\": 1, \"start\": \"2021-06-21 07:03:58.600676\", \"stderr\": \"error: error when creating \\\"/
kubesphere/kubesphere/prometheus/alertmanager/alertmanager-secret.yaml\\\": Post https://10.233.0.1:443/api/v1/namespaces/kubesphere-monitoring-system/secrets: stream error: stream I
D 13; INTERNAL_ERROR\", \"stderr_lines\": [\"error: error when creating \\\"/kubesphere/kubesphere/prometheus/alertmanager/alertmanager-secret.yaml\\\": Post https://10.233.0.1:443/a
pi/v1/namespaces/kubesphere-monitoring-system/secrets: stream error: stream ID 13; INTERNAL_ERROR\"], \"stdout\": \"alertmanager.monitoring.coreos.com/main created\\nservice/alertman
ager-main created\\nserviceaccount/alertmanager-main created\\nservicemonitor.monitoring.coreos.com/alertmanager created\", \"stdout_lines\": [\"alertmanager.monitoring.coreos.com/ma
in created\", \"service/alertmanager-main created\", \"serviceaccount/alertmanager-main created\", \"servicemonitor.monitoring.coreos.com/alertmanager created\"]}"
可以正常登录,进入后,服务组件里monitoring组件显示有节点异常,异常的有:
alertmanager-operated、prometheus-k8s、alertmanager-main、prometheus-operated
请问怎么解决?