redspread / localkube

DEPRECRATED - See https://github.com/kubernetes/minikube
Apache License 2.0
184 stars 11 forks source link

localkube problems with Docker for Mac Beta #49

Open wstrange opened 8 years ago

wstrange commented 8 years ago

A couple of issues with the new native "Docker for Mac" https://beta.docker.com/docs/

1) The ~/.kube/config entry for localkube uses server 127.0.0.1:8080 to talk to the Kube API server. Changing this to 192.168.64.8:8080 fixed the issue for me. This is the IP used by the new docker daemon. I discovered this via "ping docker.local"

2) Kubernetes comes up (I think) -in that I can talk to the API server- but a kubectl get nodes shows "not ready"

All my pods show "pending" state - because there are no nodes to schedule them on

ethernetdan commented 8 years ago

@wstrange I haven't gotten an invite yet so not sure how far I will be able to troubleshoot

1) We are using a sketchy technique to determine which URL to use for the Kube API server. Seems like Docker for Mac uses Unix sockets (for the Docker daemon) which causes this method to think it's Linux. We should look for a better way to determine this.

2) Would you mind posting the logs of the localkube container? You can get them with: docker logs $(docker ps --filter="label=rsprd.com/name=localkube" --quiet) Hopefully they'll show why the Node never made it into the Ready state.

wstrange commented 8 years ago

Hi Dan

I am having trouble running localkube now - the containers keep restarting.

Here is the output

https://gist.github.com/wstrange/9d13524f2a5f9956ad8c95840b387deb

zoidyzoidzoid commented 8 years ago

Any update on this?

Should I re-create this issue in minikube?

ethernetdan commented 8 years ago

@zoidbergwill that's a good idea, as minikube becomes more stable the plan is to start closing this localkube.

I'm still waiting to get into the beta so haven't been able to get going with this :(