离线安装 KubeSphere 2.1.1 与 Kubernetes
CauchyK零SK壹S
[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>.
先这样简单排查下,跟这个返回结果对比下看看
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') {
pwd
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/configuration/settings.xml -Dsonar.branch=$BRANCH_NAME -Dsonar.login=$SONAR_TOKEN"
}
}
timeout(time: 1, unit: 'HOURS') {
waitForQualityGate abortPipeline: true
}
}
}
}
freemankevinK零S
你那离线包能不能分享下
freemankevinK零S
这样装个锤子
freemankevinK零S
包搞不了啊啊啊
freemankevinK零S
哎~
yunkunraoK零S
感谢您的及时反馈,链接已恢复正常。
freemankevinK零S
yunkunrao ???????
weibo0103K零S
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’
- 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/