【问题标题】:Unable to expose kubernetes dashboard to access it from outside无法公开 Kubernetes 仪表板以从外部访问它
【发布时间】:2019-07-18 12:01:30
【问题描述】:

我还尝试将 kubernetes 服务 yaml 文件更改为节点端口,然后尝试从新端口公开仪表板我收到错误 “连接不是私有的”。那么如何通过制作来访问仪表板连接是私有的吗?

【问题讨论】:

  • 你能提供kubectl -n kube-system get service kubernetes-dashboard的输出吗

标签: kubernetes dashboard


【解决方案1】:

你能试试下面的步骤吗...

  1. 取消部署现有仪表板。

  2. 使用以下命令部署仪表板:

    kubectl create -f https://raw.githubusercontent.com/epasham/docker-repo/master/k8s/dashboard/kubernetes-dashboard.yml
    
  3. master $ kubectl get svc -n kube-system | grep dashboard
    kubernetes-dashboard   NodePort    10.110.127.61   <none>        9090:30000/TCP   2m
    
  4. master $ curl 10.110.127.61:9090(集群内)

  5. 使用HOSTNAME:30000从浏览器访问仪表板

【讨论】:

  • 工作得很好,谢谢。但它没有询问登录详细信息
猜你喜欢
  • 2019-02-09
  • 2017-12-24
  • 2018-11-03
  • 2021-06-20
  • 1970-01-01
  • 2020-07-29
  • 2016-12-08
  • 1970-01-01
相关资源
最近更新 更多