【发布时间】:2016-01-26 18:31:10
【问题描述】:
我正在尝试在 Google Container Engine 中创建一个“Hello Node”示例应用程序,遵循 tutorial
但是,即使在运行命令 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
【问题讨论】:
标签: docker google-cloud-platform kubernetes google-kubernetes-engine