如何远程访问本地kubernetes minikube仪表板 [英] how to access local kubernetes minikube dashboard remotely

查看:1180
本文介绍了如何远程访问本地kubernetes minikube仪表板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Kubernetes新手(或基本网络)问题: 将单节点minikube(0.23版本)安装在在我的局域网(IP地址为192.168.0.20)上通过virtualbox运行的ubuntu盒上.

Kubernetes newbie (or rather basic networking) question: Installed single node minikube (0.23 release) on a ubuntu box running in my lan (on IP address 192.168.0.20) with virtualbox.

minikube start命令也成功完成

minikube start command completes successfully as well

minikube start
Starting local Kubernetes v1.8.0 cluster...
Starting VM...
Getting VM IP address...
Moving files into cluster...
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Starting cluster components...
Kubectl is now configured to use the cluster.

minikube仪表板也成功启动. (在192.168.99.100:30000上运行)

minikube dashboard also comes up successfully. (running on 192.168.99.100:30000)

我想做的是在同一局域网中从我的Macbook(在192.168.0.11上运行)访问minikube仪表板.

what i want to do is access minikube dashboard from my macbook (running on 192.168.0.11) in the same LAN.

我还想从互联网访问相同的minikube仪表板.

Also I want to access the same minikube dashboard from the internet.

用于LAN访问: 现在,据我了解,我正在使用virtualbox(默认的vm选项),我可以使用vboxnet命令

For LAN Access: Now from what i understand i am using virtualbox (the default vm option), i can change the networking type (to NAT with port forwarding) using vboxnet command

VBoxManage modifyvm "VM name" --natpf1 "guestssh,tcp,,2222,,22"

此处

就我而言,将是这样

VBoxManage modifyvm "VM name" --natpf1 "guesthttp,http,,30000,,8080"

我在这里沿着正确的方向思考吗?

Am i thinking along the right lines here?

也可以远程访问相同的minikube仪表板地址,我可以设置类似no-ip.com的服务.他们要求在Linux机器上安装其实用程序,并在路由器设置中设置端口转发,该端口设置将从主机端口转发到来宾端口.那是对的吗?我在这里想念东西吗?

Also for remotely accessing the same minikube dashboard address, i can setup a no-ip.com like service. They asked to install their utility on linux box and also setup port forwarding in the router settings which will port forward from host port to guest port. Is that about right? Am i missing something here?

推荐答案

我能够使用以下简单的方法开始运行:

I was able to get running with something as simple as:

kubectl proxy --address='0.0.0.0' --disable-filter=true

这篇关于如何远程访问本地kubernetes minikube仪表板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆