Hi All
I'm going through this kubernetes hello world tutorial and just trying to expose a basic nginx service via LoadBalancer:
http://janetkuo.github.io/docs/hellonode/I spin up a service as follows:
bash-3.2$ kubectl run hello-node --image=nginx --port=80
deployment "hello-node" created
--
bash-3.2$ kubectl get deployments
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
hello-node 1 1
--
bash-3.2$ kubectl get pods
NAME READY STATUS RESTARTS AGE
hello-node-4180085773-f4p9x 1/1 Running 0 43s
--
kubectl get events:
---
9m 9m 1 hello-node-4180085773-f4p9x Pod Normal Scheduled default-scheduler Successfully assigned hello-node-4180085773-f4p9x to kubernetes-minion-group-kmg7
9m 9m 1 hello-node-4180085773-f4p9x Pod spec.containers{hello-node} Normal Pulling kubelet, kubernetes-minion-group-kmg7 pulling image "nginx"
9m 9m 1 hello-node-4180085773-f4p9x Pod spec.containers{hello-node} Normal Pulled kubelet, kubernetes-minion-group-kmg7 Successfully pulled image "nginx"
9m 9m 1 hello-node-4180085773-f4p9x Pod spec.containers{hello-node} Normal Created kubelet, kubernetes-minion-group-kmg7 Created container with id 3caeab9ebdc3445811d09537d59f4449ec51b1d22d08221577a239352929c128
9m 9m 1 hello-node-4180085773-f4p9x Pod spec.containers{hello-node} Normal Started kubelet, kubernetes-minion-group-kmg7 Started container with id 3caeab9ebdc3445811d09537d59f4449ec51b1d22d08221577a239352929c128
9m 9m 1 hello-node-4180085773 ReplicaSet Normal SuccessfulCreate replicaset-controller Created pod: hello-node-4180085773-f4p9x
10m 10m 1 hello-node Deployment Normal ScalingReplicaSet deployment-controller Scaled down replica set hello-node-272046498 to 0
9m 9m 1 hello-node Deployment Normal ScalingReplicaSet deployment-controller Scaled up replica set hello-node-4180085773 to 1
---
I then try to expose the service to the general internet via loadbalancer mechanism it appears to accept the request, but stays in pending forever:
bash-3.2$ date;kubectl get services hello-node
Tue May 23 14:17:56 +04 2017
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
hello-node 10.0.241.214 <pending> 80:31715/TCP 13m
bash-3.2$
bash-3.2$ date;kubectl get services hello-node
Tue May 23 14:18:39 +04 2017
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
hello-node 10.0.241.214 <pending> 80:31715/TCP 14m
bash-3.2$
bash-3.2$
bash-3.2$ date;kubectl get services hello-node
Tue May 23 14:52:43 +04 2017
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
hello-node 10.0.241.214 <pending> 80:31715/TCP 48m
My question is: How do I troubleshoot this further,and hopefully fix it?
Thanks,
Traiano