小编Een*_*eur的帖子

Kubernetes(Minikube)外部ip不起作用

我是Kubernetes的新手,我一直在浏览寻找和阅读为什么我的外部IP无法解决.

我在ubuntu 16.04发行版上运行minikube.

在仪表板的服务概述中,我有这个

    my-nginx | run: my-nginx | 10.0.0.11 | my-nginx:80 TCP my-nginx:32431 | TCP 192.168.42.71:80 
Run Code Online (Sandbox Code Playgroud)

当我做一个http获取http://192.168.42.165:32431/我得到nginx页面.

服务的配置如下

    # Please edit the object below. Lines beginning with a '#' will be ignored,
    # and an empty file will abort the edit. If an error occurs         while saving this file will be
    # reopened with the relevant failures.
    #
    apiVersion: v1
    kind: Service
    metadata:
      creationTimestamp: 2016-09-23T12:11:13Z
      labels:
        run: my-nginx
      name: my-nginx
      namespace: default
      resourceVersion: "4220"
      selfLink: /api/v1/namespaces/default/services/my-nginx
      uid: …
Run Code Online (Sandbox Code Playgroud)

kubernetes

13
推荐指数
3
解决办法
1万
查看次数

标签 统计

kubernetes ×1