Cauchy 还需要别的么,三台服务器都是物理机,走内网,时间统一,网络互通,防火墙关闭,同一个镜像系统Centos7.5,全部都是干净环境,每次重装k8s都重装系统,master16G、node1、node28G
master:192.168.0.166 node1 192.168.0.155 node2 192.168.0.144

    TAO

    把环境登录信息发来,或者开个远程,向日葵或者tv12

    • TAO 回复了此帖

      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 个月 后