3

我在 Azure 容器服务中使用 Windows 容器。当我开始使用它时,我在容器中的应用程序能够访问 Internet。但是最近发现新建的容器不能上网,即使是最简单的iis容器也是按照https://docs.microsoft.com/en-us/azure/container-service/kubernetes/container上的说明创建的-服务-kubernetes-windows-演练

我在容器中得到的路由表:

ifIndex DestinationPrefix                              NextHop                                  RouteMetric PolicyStore
------- -----------------                              -------                                  ----------- -----------
37      255.255.255.255/32                             0.0.0.0                                          256 ActiveStore
33      255.255.255.255/32                             0.0.0.0                                          256 ActiveStore
32      255.255.255.255/32                             0.0.0.0                                          256 ActiveStore
37      224.0.0.0/4                                    0.0.0.0                                          256 ActiveStore
33      224.0.0.0/4                                    0.0.0.0                                          256 ActiveStore
32      224.0.0.0/4                                    0.0.0.0                                          256 ActiveStore
37      192.168.15.255/32                              0.0.0.0                                          256 ActiveStore
37      192.168.15.249/32                              0.0.0.0                                          256 ActiveStore
37      192.168.0.0/20                                 0.0.0.0                                          256 ActiveStore
32      127.255.255.255/32                             0.0.0.0                                          256 ActiveStore
32      127.0.0.1/32                                   0.0.0.0                                          256 ActiveStore
32      127.0.0.0/8                                    0.0.0.0                                          256 ActiveStore
33      10.244.2.255/32                                0.0.0.0                                          256 ActiveStore
33      10.244.2.59/32                                 0.0.0.0                                          256 ActiveStore
33      10.244.2.0/24                                  0.0.0.0                                          256 ActiveStore
37      0.0.0.0/0                                      192.168.0.1                                      256 ActiveStore
33      0.0.0.0/0                                      10.244.2.1                                       256 ActiveStore
37      ff00::/8                                       ::                                               256 ActiveStore
33      ff00::/8                                       ::                                               256 ActiveStore
32      ff00::/8                                       ::                                               256 ActiveStore
37      fe80::14f3:38ac:8df2:9869/128                  ::                                               256 ActiveStore
33      fe80::1429:dec4:7919:bb65/128                  ::                                               256 ActiveStore
37      fe80::/64                                      ::                                               256 ActiveStore
33      fe80::/64                                      ::                                               256 ActiveStore
32      ::1/128                                        ::                                               256 ActiveStore

Kubernetes 版本:

Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.2", GitCommit:"922a86cfcd65915a9b2f69f3f193b8907d741d9c", GitTreeState:"clean", BuildDate:"2017-07-21T08:23:22Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.6", GitCommit:"7fa1c1756d8bc963f1a389f4a6937dc71f08ada2", GitTreeState:"clean", BuildDate:"2017-06-16T18:21:54Z", GoVersion:"go1.7.6", Compiler:"gc", Platform:"linux/amd64"}

我应该如何从容器中获取 Internet 访问权限?

谢谢

4

0 回答 0