V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dunhanson
V2EX  ›  程序员

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

  •  
  •   dunhanson · 2019-02-20 17:44:41 +08:00 · 5294 次点击
    这是一个创建于 1863 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    4 条回复    2019-04-11 14:24:33 +08:00
    dunhanson
        1
    dunhanson  
    OP
       2019-02-20 17:45:43 +08:00
    昨晚装成功的,之前一直用的 VirutalBox,后来改用 VMware 了
    southwolf
        2
    southwolf  
       2019-02-21 08:44:26 +08:00
    绑个外网 IP …
    dunhanson
        3
    dunhanson  
    OP
       2019-02-21 10:50:58 +08:00
    @southwolf 你这么一说,我想到了 FRP,不过有简单的方式吗?
    stirlingx
        4
    stirlingx  
       2019-04-11 14:24:33 +08:00
    启动 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。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1083 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 18:56 · PVG 02:56 · LAX 11:56 · JFK 14:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.