操作系统信息
vm,Centos7.9,16C/32G
安装脚本:
curl -sfL https://get-kk.kubesphere.io | VERSION=v3.0.2 sh -
./kk create cluster --with-kubernetes v1.25.3 --with-kubesphere v3.3.1
问题:
一直卡在
Please wait for the installation to complete: <---<<
通过以下命令查看发现报错了
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l 'app in (ks-install, ks-installer)' -o jsonpath='{.items[0].metadata.name}') -f
第一个报错信息如下:
"stderr_lines": ["Error: unable to build kubernetes objects from release manifest: resource mapping not found for name: \"elasticsearch-logging-curator-elasticsearch-curator\" namespace: \"\" from \"\": no matches for kind \"CronJob\" in version \"batch/v1beta1\"", "ensure CRDs are installed first"], "stdout": "Release \"elasticsearch-logging-curator\" does not exist. Installing it now.", "stdout_lines": ["Release \"elasticsearch-logging-curator\" does not exist. Installing it now."]}
PLAY RECAP *********************************************************************
localhost : ok=46 changed=40 unreachable=0 failed=1 skipped=80 rescued=0 ignored=0
按错误提示把 config-sample.yaml
中的 logging
关闭,重新执行./kk create cluster -f config-sample.yaml
logging:
enabled: false
logsidecar:
enabled: true
replicas: 2
# resources: {}
第二个错误,此时已看到Welcome to KubeSphere!
提示,打开http://192.168.x.x:30880
可以看到登录界面,但却提示Not Found
"item": "prometheus",
"msg": "non-zero return code",
"rc": 1,
"start": "2022-11-23 21:17:29.035425",
"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\""
],
折腾了一天发现下面两个版本应该还不兼容
v1.24: v1.24.7
v1.25: v1.25.3