kubesphere开启devops失败

kubesphere最小化安装后,在控制台开启devops,报错如下:

TASK [common : KubeSphere | Disabling old openldap] ****************************
skipping: [localhost]

TASK [common : KubeSphere | Restarting openldap] *******************************
skipping: [localhost]

TASK [common : KubeSphere | Restarting ks-account] *****************************
skipping: [localhost]

TASK [common : KubeSphere | Importing openldap status] *************************
changed: [localhost]

TASK [common : KubeSphere | Getting minio installation files] ******************
ok: [localhost] => (item=minio-ha)

TASK [common : KubeSphere | Creating manifests] ********************************
ok: [localhost] => (item={'name': 'custom-values-minio', 'file': 'custom-values-minio.yaml'})

TASK [common : KubeSphere | Checking minio] ************************************
changed: [localhost]

TASK [common : KubeSphere | Deploying minio] ***********************************
changed: [localhost]

TASK [common : debug] **********************************************************
ok: [localhost] => {
    "msg": [
        "1. check the storage configuration and storage server",
        "2. make sure the DNS address in /etc/resolv.conf is available",
        "3. execute 'kubectl logs -n kubesphere-system -l job-name=minio-make-bucket-job' to watch logs",
        "4. execute 'helm -n kubesphere-system uninstall ks-minio && kubectl -n kubesphere-system delete job minio-make-bucket-job'",
        "5. Restart the installer pod in kubesphere-system namespace"
    ]
}

TASK [common : fail] ***********************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "It is suggested to refer to the above methods for troubleshooting problems ."}

PLAY RECAP *********************************************************************
localhost                  : ok=39   changed=23   unreachable=0    failed=1    skipped=71   rescued=0    ignored=0   
^C
[root@k8s-node1 ingress]#  

 

解决:

在所有节点都安装helm!

 

解决过程:我卸载kubesphere,然后重新安装kubesphere并安装前打开devops,发现报错:

      "delta": "0:00:12.105523",
      "end": "2023-10-17 17:51:29.215446",
      "invocation": {
        "module_args": {
          "_raw_params": "# Delete Job migrate because 'helm upgrade' will try to update immutable fields of Job, which is not allowed. \n/usr/local/bin/kubectl delete job -n kubesphere-devops-system migrate --ignore-not-found\n\nks_devops_chart_version=0.1.15\ncharts_folder=/kubesphere/kubesphere/ks-devops/charts\nks_devops_chart=$charts_folder/ks-devops-$ks_devops_chart_version.tgz\n\n# Create or update CRDs manually\ntar xzvf $ks_devops_chart -C $charts_folder\n/usr/local/bin/kubectl apply -f $charts_folder/ks-devops/crds\n/usr/local/bin/kubectl apply -f $charts_folder/ks-devops/charts/s2i/crds\n\n# Import the templates seperately due the potential webhook issues\nrm -rf s2i-templates\nhelm template  $charts_folder/ks-devops/charts/s2i/  -f /kubesphere/kubesphere/ks-devops/ks-devops-values.yaml  -s templates/binary.yaml  -s templates/java.yaml  -s templates/nodejs.yaml  -s templates/python.yaml  -s templates/tomcat.yaml > s2i-templates\\templates.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/binary.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/java.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/nodejs.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/python.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/tomcat.yaml\n\n/usr/local/bin/helm upgrade --install devops $ks_devops_chart -n kubesphere-devops-system -f /kubesphere/kubesphere/ks-devops/ks-devops-values.yaml --wait\n\n/usr/local/bin/kubectl apply -f s2i-templates\\templates.yaml\n",
          "_uses_shell": true,
          "argv": null,
          "chdir": null,
          "creates": null,
          "executable": "/bin/bash",
          "removes": null,
          "stdin": null,
          "stdin_add_newline": true,
          "strip_empty_ends": true,
          "warn": true
       

  感觉是helm版本的问题,但是我master节点没有安装helm,于是就安装helm后,重新开启devops。然后成功了。

posted @ 2023-10-17 18:20  我的天啊~  阅读(931)  评论(0编辑  收藏  举报