• 请不要在回答技术问题时复制粘贴 AI 生成的内容
dunhanson
V2EX  ›  程序员

minikube dashboard 没有 GUI 界面,如何让其它电脑访问?

  •  
  •   dunhanson · Feb 20, 2019 · 6172 views
    This topic created in 2828 days ago, the information mentioned may be changed or developed.

    我装在虚拟机上,虚拟机跑的是 CentOS,没有图像界面

    4 replies  •  2019-04-11 14:24:33 +08:00
    dunhanson
    dunhanson
    OP
    Feb 20, 2019
    1
    昨晚装成功的,之前一直用的 VirutalBox,后来改用 VMware 了
    southwolf
    southwolf
    Feb 21, 2019
    2
    绑个外网 IP …
    dunhanson
    dunhanson
    OP
    Feb 21, 2019
    3
    @southwolf 你这么一说,我想到了 FRP,不过有简单的方式吗?
    stirlingx
    stirlingx
    Apr 11, 2019
    4
    启动 dashboard:

    minikube dashboard
    为 dashboard 添加外部访问代理,此处的 IP 为本地系统 IP:

    kubectl proxy --port=8001 --address='10.0.0.2' --accept-hosts='^.*' &
    通过 url: http://10.0.0.2:8001/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/ 访问 dashboard。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4858 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 03:02 · PVG 11:02 · LAX 19:02 · JFK 22:02
    ♥ Do have faith in what you're doing.