Kubernetes cluster setup with Vagrant and CoreOS.
- Vagrant
- Virtualbox
- For more information about virtualbox setup, see the test environments section in https://github.com/ContinUSE/openstack-on-coreos
Controller Cluster has 3 nodes as controller-01/controller-02/controller-03, and Kube Cluster has 3 nodes as kube-01-01, kube-02, kube-03.
$ ls
README.md* continuse/ controller/ examples/ kube/
Modify in controller/Vagrantfile and kube/Vagrantfile for NFS directory (ex: Local directory path is ~/kubernetes-cluster/continuse)
config.vm.synced_folder "~/kubernetes-cluster/continuse", "/continuse", id: "root", :nfs => true, :mount_options => ["nolock,vers=3,udp"], :map_uid => 0, :map_gid => 0
$ cd controller
$ vagrant up
............
...........
$ cd kube
$ vagrant up
$ cd controller
$ vagrant ssh controller-01
On controller-01
$ cd /continuse/kube/bin
$ wget https://github.com/ContinUSE/kubernetes-coreos-cluster/releases/download/v1.0.1/kube_1.0.1.tar
$ tar xvfz kube_1.0.1.tar
On controller-01
$ cd /continuse/kube/bin
$ openssl genrsa -out kube-serviceaccount.key 2048
$ cd /continuse/kube/service
$ fleetctl start kube-apiserver.service
$ fleetctl start kube-controller-manager.service
$ fleetctl start kube-scheduler.service
$ fleetctl start kube-kubelet.service
$ fleetctl start kube-proxy.service
$ kubectl create -f kube-ui-rc.yaml --namespace=kube-system
$ kubectl create -f kube-ui-svc.yaml --namespace=kube-system
http://192.168.10.12:8080/ui/ IP address of Kubernetes API Server Running
http://192.168.10.71:4194/containers/ Each Kube Cluster node
KUBERNETES_VERSION v1..0.1
If you want to test something examples, start with [Kubernetes examples] (https://github.com/GoogleCloudPlatform/kubernetes/blob/master/examples/). And I am trying yo make examples. See with [My Examples] (https://github.com/ContinUSE/kubernetes-coreos-cluster/tree/master/examples).