首先需要对外暴露minikube的对外端口8001
kubectl proxy --address=‘0.0.0.0’ --accept-hosts=’^*$’ &
然后通过以下地址来访问:
http://10.10.10.47:8001/api/v1/namespaces/default/services/http:hello-minikube:/proxy/#/service/default/hello-minikube?namespace=default
10.10.10.47是node的ip也就是服务器物理ip
namespaces/default 这是web服务所属service所在命名空间
http:hello-minikube 这是svc的名称,我这里用的是hello-minikube这个示例,所以svc的名称就是hello-minikube
/hello-minikube?namespace=default 这里同样跟service名称和namespace的名称