Follow the steps to create a Kubernetes Cluster in your machine.
1. Clone the released tag in [3].
2. Make sure you have the pre-requites mentioned in the Readme file.
3. Enable virtualization in bios
4. Execute run.sh file as below.
You can make sure everything works fine using following commands. It will list down the nodes and pods as below.
You can ssh to master node as well as the minion nodes as below. Make sure user name is core and not root.
ssh core@<IP>
You can follow blog post in [4] to troubleshoot in a Kubernetes Cluster.
This has a nice UI which you can access through master node IP.
http://172.17.8.101:8080/api/v1/proxy/namespaces/kube-system/services/kube-ui/#/dashboard/
You can also monitor minion’s health stats and other relevant information from cAdvisor as well.
http://172.17.8.102:4194/containers/
[1] – https://github.com/pubudu538/kubernetes-vagrant-setup/blob/blog-v1/Vagrantfile
[2] – http://kubernetes.io/
[3] – https://github.com/pubudu538/kubernetes-vagrant-setup/tree/blog-v1
[4] – http://reddragonspace.blogspot.com/2015/07/setup-kubernetes-cluster-on-ec2.html