Docker Google容器引擎:Kubernetes在创建容器后没有公开外部IP
我试图在Google容器引擎中创建一个“Hello节点”示例应用程序,如下所示 但是,即使在运行命令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
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。