kubernetes coreos multi-node

81 views
Skip to first unread message

tech qi3

unread,
Jun 23, 2016, 10:28:13 PM6/23/16
to CoreOS Dev

Hi, i followed the guideline in coreos website to understand the setup of kubernetes coreos multi-node with ssl clusters. It seems everything work fine except when I used kubectl get pods and return nothing. Aren't it suppose to show the kubernetes component's pods? since all the components were created in pod inside the master node. But when i check with docker ps, all containers is up and running and calico is running with rkt. Does this have something to do with the wrapper sript or am i missing something here? 

By the way I setup all the nodes with vagrant. I install kubectl within the master node instead of ssh from elsewhere since i am using windows.  

Rob Szumski

unread,
Jun 23, 2016, 11:34:48 PM6/23/16
to coreo...@googlegroups.com
The Vagrant set up assumes you are using kubectl from the same machine running Vagrant and references a bunch of generated TLS assets. You can see which in the provided kubectl config file:


You should be able to take those assets and SCP them onto one of the CoreOS nodes, along with the kubectl config. You maybe need to change that IP address to your public IP. Run kubectl similar to:

kubectl —kubeconfig=“/path/to/config"

More advanced, you should be able to cross-compile the kubectl Go code into a Windows binary. It might be worth opening an issue on the Kubernetes repo asking for them to start Windows releases or possibly use one of these community builds:


If you did that and it still doesn’t show any pods, but you get no errors, be sure you are looking at all namespaces:

kubectl get pods --all-namespaces

You should see an API server, a controller manager, proxies, etc.

 - Rob

tech qi3

unread,
Jun 24, 2016, 8:17:12 AM6/24/16
to CoreOS Dev
kubectl get pods only return default namespace, kubectl get pods --all-namespaces show all the pods now. My bad and thanks for the help.
Reply all
Reply to author
Forward
0 new messages