【问题标题】:Is it possible to disable kubernetes dashboard tls check是否可以禁用 kubernetes 仪表板 tls 检查
【发布时间】:2020-07-18 21:35:56
【问题描述】:

我在本地机器(http://kubernetes.dolphin.com:8443/#/login)登录kubernetes仪表盘,我在/etc/hosts中定义了一个虚拟域名:

192.168.31.30 kubernetes.dolphin.com

现在我正在使用此域登录 kubernetes 仪表板,但它给了我提示:

Insecure access detected. Sign in will not be available. Access Dashboard securely over HTTPS or using localhost. 

是否可以关闭 kubernetes 仪表板(kubernetesui/dashboard:v2.0.3)在 kubernetes 仪表板 yaml 中进行 tls 安全检查?因为我的 kubernetes 在 localhost 机器上并且不需要 TLS 安全性。现在我的登录仪表板看起来像这样。

【问题讨论】:

  • 您尝试改用https 吗?喜欢https://kubernetes.dolphin.com:8443/#/login 并在不安全的屏幕上单击继续,看看您是否可以登录?
  • https 它给我提示页面未找到错误。@vijay
  • 你能检查仪表板 pod 日志,在这里发布相同的内容吗?
  • 日志显示2020-07-18T06:06:54.534154842Z 2020/07/18 06:06:54 Metric client health check failed: the server could not find the requested resource (get services dashboard-metrics-scraper). Retrying in 30 seconds.@vijay
  • 你能看看这个帖子里的步骤吗@Dolphin kubernetes-dashboard-error-metric-client-health-check-failed-the-server

标签: kubernetes


【解决方案1】:

启用 kubernetes 仪表板 http 访问:

containers:
    - name: kubernetes-dashboard
        image: 'kubernetesui/dashboard:v2.0.3'
        args:
        - '--namespace=default'
        - '--insecure-port=5443'

所以你可以使用5443端口转发kubernetes仪表板访问数据,而不需要登录。但你不应该在生产环境中这样做。

【讨论】:

    猜你喜欢
    • 2021-06-16
    • 2017-11-17
    • 2020-01-14
    • 1970-01-01
    • 1970-01-01
    • 2014-12-23
    • 2023-03-11
    • 1970-01-01
    • 2015-11-22
    相关资源
    最近更新 更多