• FAQDevOps
  • 为什么我启用了 DevOps,但无法在 KubeSphere Console 上看到 DevOps 导航栏?

最近论坛内不少用户反馈遇到启用 DevOps 后无法在 KubeSphere Console 上看到 DevOps 导航栏的问题,请参考:

这里我统一提供一下排查思路:

  1. 确认当前用户是否有足够的权限

    KubeSphere Console 中的导航栏的渲染条件之一:当前用户的角色权限。

  2. 确认启用 DevOps 之后,Deployment ks-installer 的日志是正常的


    若 DevOps 沒有启用成功,自然也是无法使用 DevOps 相关的功能。

       Start installing monitoring
    
       Start installing multicluster
    
       Start installing openpitrix
    
       Start installing network
    
       Start installing devops
    
       **************************************************
    
       Waiting for all tasks to be completed ...
    
       task openpitrix status is successful  (1/5)
    
       task network status is successful  (2/5)
    
       task multicluster status is successful  (3/5)
    
       task devops status is successful  (4/5)
    
       task monitoring status is successful  (5/5)
    
       **************************************************
    
       Collecting installation results ...
    
       #####################################################
    
       ###              Welcome to KubeSphere!           ###
    
       #####################################################
    
    
    
       Console: http://192.168.0.2:30880
    
       Account: admin
    
       Password: P@88w0rd
    
    
    
       NOTES:
    
       1. After you log into the console, please check the
    
           monitoring status of service components in
    
           "Cluster Management". If any service is not
    
           ready, please wait patiently until all components
    
           are up and running.
    
       2. Please change the default password after login.
    
    
    
       #####################################################
    
       https://kubesphere.io             2022-01-18 09:59:28
    
       #####################################################
  3. 确认启用了 DevOps 之后,ConfigMap kubesphere-config 中 devops 配置项存在,且 devops.host 配置不为空


    若 devops 配置项不存在或者 devops.host 未配置,也无法正常显示 DevOps 导航栏。

2 年 后
15 天 后

yc-sh

kubectl edit cc ks-installer -n kubesphere-system

把 status.devops 这段删除掉:

status:
  alerting:
    enabledTime: 2023-09-07T06:02:28UTC
    status: enabled
  auditing:
    enabledTime: 2023-09-07T05:59:18UTC
    status: enabled
  clusterId: 1491e592-f774-4941-8cc8-3a56f5acda81-1692684815
  core:
    enabledTime: 2023-09-07T05:58:31UTC
    status: enabled
    version: v3.4.1
  devops:
    enabledTime: 2023-09-07T06:01:12UTC
    status: enabled

修改为

status:
  alerting:
    enabledTime: 2023-09-07T06:02:28UTC
    status: enabled
  auditing:
    enabledTime: 2023-09-07T05:59:18UTC
    status: enabled
  clusterId: 1491e592-f774-4941-8cc8-3a56f5acda81-1692684815
  core:
    enabledTime: 2023-09-07T05:58:31UTC
    status: enabled
    version: v3.4.1

然后重启 installer 进行重装。

kubectl rollout restart deployment ks-installer -n kubesphere-system

重装后,再看下是否能显示,如果还不能显示,还需要按照上面 3 个步骤排查下。