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.1.2/kube_1.1.2.tgz
$ tar xvfz kube_1.1.2.tgz
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
$ cd /continuse/kube/examples/kube-ui
$ kubectl create -f kube-system.yaml
$ 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).