Skip to content

clamoriniere1A/kubernetes-coreos-cluster

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubernetes-coreos-cluster-hands-on

Kubernetes cluster setup with Vagrant and CoreOS.

Pre-requisites

Controller and Kube Cluster Setup

Download Scripts

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

Controller / Kube Cluster Building

$ cd controller
$ vagrant up
............
...........
$ cd kube
$ vagrant up

Controller Cluster login & Kubernetes Binary file copy

$ 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

Make Service Account Key file

On controller-01
$ cd /continuse/kube/bin
$ openssl genrsa -out kube-serviceaccount.key 2048

Kubernetes Service Start

$ 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

Kubernetes Service for GUI Interface

$ kubectl create -f kube-ui-rc.yaml --namespace=kube-system
$ kubectl create -f kube-ui-svc.yaml --namespace=kube-system

Kubernetes UI -- Web-based

http://192.168.10.12:8080/ui/           IP address of Kubernetes API Server Running

cAdvisor -- Web-based monitoring

http://192.168.10.71:4194/containers/    Each Kube Cluster node

KUBERNETES_VERSION v1..0.1

Usage

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).

About

Kubernetes Cluster Test Environment Setup Using CoreOS

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 84.4%
  • Shell 15.6%