Cauchy 大佬晚上抽个空咋样,方便的话加个微信LT-877425287

    TAO
    可以先自己排查下网络,就从ks-console这个服务入手

    pod –> service –> nodePort

    • TAO 回复了此帖

      Cauchy 感觉是没戏了,我已经尝试过用3中方法搭建过10+次都没成功

      • kumu 回复了此帖

        @TAO
        重要的是要搞清楚为啥会出现这种现象,找不到原因,搭建再多次也是徒劳的。

        pod –> service –> nodePort ,就按这个流程逐个排查么,看下到底是哪个环节不通。

        • TAO 回复了此帖

          Feynman 这东西怎么能装上呢?我折腾了半个月没装好

          • TAO 回复了此帖

            TAO

            [root@node1 ~]# kubectl get pod -n kubesphere-system -o wide | grep ks-console
            ks-console-67f5d5f76b-8dv4b              1/1     Running   0          8d    10.233.90.7    node1   <none>           <none>
            [root@node1 ~]# curl 10.233.90.7:8000
            Redirecting to <a href="/login">/login</a>.[root@node1 ~]# 
            [root@node1 ~]# kubectl get svc -n kubesphere-system ks-console 
            NAME         TYPE       CLUSTER-IP      EXTERNAL-IP   PORT(S)        AGE
            ks-console   NodePort   10.233.39.124   <none>        80:30880/TCP   8d
            [root@node1 ~]# curl 10.233.39.124
            Redirecting to <a href="/login">/login</a>.

            先这样简单排查下,跟这个返回结果对比下看看

            wcsemail 我后来的解决方法是删除了/etc/docker/deamon.json文件,因为总是一直报docker不对,把这个文件改了又改,后来删除以后成功安装

            SonarQube代码检查报异常

            SonarQube installation defined in this job (sonar) does not match any configured installation. Number of installations that can be configured: 0.
            If you want to reassign jobs to a different SonarQube installation, check the documentation under https://redirect.sonarsource.com/plugins/jenkins.html
            这个怎么解决

            这是流水线文件
            stage('sonarqube analysis') {
            steps {
            container ('maven') {
            sh 'echo 当前目录 11111111111111111'
            withCredentials([string(credentialsId: "$SONAR_CREDENTIAL_ID", variable: 'SONAR_TOKEN')]) {
            withSonarQubeEnv('sonar') {
            sh 'echo 当前目录
            pwd'
            sh "mvn sonar:sonar -gs
            pwd/configuration/settings.xml -Dsonar.branch=$BRANCH_NAME -Dsonar.login=$SONAR_TOKEN"
            }
            }
            timeout(time: 1, unit: 'HOURS') {
            waitForQualityGate abortPipeline: true
            }
            }
            }
            }

            • TAO 回复了此帖

              TAO 集成好的sonarqube是可以正常访问的

              2 个月 后
              7 天 后

              Please ensure that your environment has met the above requirements (yes/no) yes
              umount: /kubeinstaller/yum_repo/iso: mountpoint not found
              Not find software dependency package, Please see the support list and download path in the following url !
              https://kubesphere.io/forum/d/230
              Traceback (most recent call last):
              File “os/precheck.py”, line 71, in <module>
              defaultStorageClassCheck(getVars(getVarsFiles()), getVarsFiles())
              File “os/precheck.py”, line 22, in getVars
              configs = yaml.load(f.read(), Loader=yaml.FullLoader)
              AttributeError: ‘module’ object has no attribute ‘FullLoader’


              1. Initiating Environment
                *********************************************
                [WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details

              PLAY [kube-master[0]] *********************************************************************************************************************************************************************

              TASK [loadbalancer_apiserver is not set] **************************************************************************************************************************************************
              Friday 20 November 2020 10:36:30 +0800 (0:00:00.089) 0:00:00.089 *******
              skipping: [master]

              PLAY [k8s-cluster] ************************************************************************************************************************************************************************

              TASK [Disable swap] ***********************************************************************************************************************************************************************
              Friday 20 November 2020 10:36:30 +0800 (0:00:00.075) 0:00:00.165 *******
              changed: [master]
              changed: [node1]
              changed: [node2]

              TASK [Swap off] ***************************************************************************************************************************************************************************
              Friday 20 November 2020 10:36:30 +0800 (0:00:00.352) 0:00:00.517 *******
              changed: [master]
              changed: [node2]
              changed: [node1]

              PLAY [local-registry] *********************************************************************************************************************************************************************

              TASK [Gathering Facts] ********************************************************************************************************************************************************************
              Friday 20 November 2020 10:36:30 +0800 (0:00:00.137) 0:00:00.654 *******
              ok: [master]

              TASK [config docker-ce] *******************************************************************************************************************************************************************
              Friday 20 November 2020 10:36:31 +0800 (0:00:01.035) 0:00:01.689 *******
              changed: [master] => (item={u’type’: u’conf’, u’name’: u’docker.service’, u’file’: u’docker.service’})

              TASK [check docker-options] ***************************************************************************************************************************************************************
              Friday 20 November 2020 10:36:32 +0800 (0:00:00.677) 0:00:02.366 *******
              ok: [master]

              TASK [Restart docker] *********************************************************************************************************************************************************************
              Friday 20 November 2020 10:36:32 +0800 (0:00:00.122) 0:00:02.488 *******
              fatal: [master]: FAILED! => {
              “changed”: true,
              “cmd”: “systemctl daemon-reload && service docker restart”,
              “delta”: “0:00:00.151001”,
              “end”: “2020-11-20 10:36:33.101453”,
              “rc”: 1,
              “start”: “2020-11-20 10:36:32.950452”
              }

              STDERR:

              Redirecting to /bin/systemctl restart docker.service
              Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.

              MSG:

              non-zero return code

              PLAY RECAP ********************************************************************************************************************************************************************************
              master : ok=5 changed=3 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0
              node1 : ok=2 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
              node2 : ok=2 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0

              Friday 20 November 2020 10:36:33 +0800 (0:00:00.413) 0:00:02.902 *******

              Gathering Facts ——————————————————————————————————————————————————————– 1.04s
              config docker-ce ——————————————————————————————————————————————————————- 0.68s
              Restart docker ——————————————————————————————————————————————————————— 0.41s
              Disable swap ———————————————————————————————————————————————————————– 0.35s
              Swap off ————————————————————————————————————————————————————————— 0.14s
              check docker-options ————————————————————————————————————————————————————— 0.12s
              loadbalancer_apiserver is not set ————————————————————————————————————————————————– 0.08s
              failed!


              please refer to https://kubesphere.io/docs/v2.1/zh-CN/faq/faq-install/


              2 个月 后

              TAO 兄弟看到你这消息我是极大的安慰,我也搭了n次都没成功,我只好找陈宫喝酒去了….