Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docker Google容器引擎:Kubernetes在创建容器后没有公开外部IP_Docker_Google Cloud Platform_Kubernetes_Google Kubernetes Engine - Fatal编程技术网

Docker Google容器引擎:Kubernetes在创建容器后没有公开外部IP

Docker Google容器引擎:Kubernetes在创建容器后没有公开外部IP,docker,google-cloud-platform,kubernetes,google-kubernetes-engine,Docker,Google Cloud Platform,Kubernetes,Google Kubernetes Engine,我试图在Google容器引擎中创建一个“Hello节点”示例应用程序,如下所示 但是,即使在运行命令kubectl expose rc hello node--type=“LoadBalancer”之后,它也不会公开外部IP来访问端口 vagrant@docker-host:~/node-app$ kubectl run hello-node --image=gcr.io/${PROJECT_ID}/hello-node:v1 --port=8080 replicationcontroller

我试图在Google容器引擎中创建一个“Hello节点”示例应用程序,如下所示

但是,即使在运行命令
kubectl expose rc hello node--type=“LoadBalancer”
之后,它也不会公开外部IP来访问端口

vagrant@docker-host:~/node-app$ kubectl run hello-node --image=gcr.io/${PROJECT_ID}/hello-node:v1 --port=8080
replicationcontroller "hello-node" created
vagrant@docker-host:~/node-app$ kubectl expose rc hello-node --type="LoadBalancer"
service "hello-node" exposed
vagrant@docker-host:~/node-app$ kubectl get services hello-node
NAME         CLUSTER_IP       EXTERNAL_IP   PORT(S)    SELECTOR         AGE
hello-node   10.163.248.xxx                 8080/TCP   run=hello-node   14s
vagrant@docker-host:~/node-app$ kubectl get services hello-node
NAME         CLUSTER_IP       EXTERNAL_IP   PORT(S)    SELECTOR         AGE
hello-node   10.163.248.xxx                 8080/TCP   run=hello-node   23s
片刻后,负载平衡器的外部IP在中列出 服务的IP(s)列


通常是1-2分钟。你只等了23秒。再等一会儿就好了。

谢谢@Jan Garaj。。这对于初次使用的用户来说是非常混乱的。理想情况下,应该有一些指标或状态消息,直到系统启动。只是通过运行教程,20分钟后没有得到外部IP。