• This repository has been archived on 09/Nov/2017
  • Stars
    star
    132
  • Rank 274,205 (Top 6 %)
  • Language
    Shell
  • License
    Apache License 2.0
  • Created almost 10 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CoreOS-Kubernetes cluster for OS X

CoreOS-Vagrant Kubernetes Cluster for OS X

Note: This App is not much maintained anymore, please use it's alternative Kube-Cluster for macOS which is quicker to boot and does not need VirtualBox/Vagrant.

k8s-multinode

CoreOS-Vagrant Kubernetes Cluster GUI for Mac OS X is a Mac Status bar App which works like a wrapper around coreos-vagrant command line tool and bootstraps Kubernetes cluster with one master and two minions machines.

NEW: Includes Helm - The Kubernetes Package Manager

CoreOS is a Linux distribution made specifically to run Docker containers. CoreOS-Vagrant is made to run on VirtualBox and VMWare VMs.

CoreOS-Vagrant-Kubernetes-Cluster-GUI

Download

Head over to the Releases Page to grab the latest release.

How to install

Required software:

  • VirtualBox, Vagrant and iTerm 2
  • Open downloaded dmg file and drag the App e.g. to your Desktop.
  • Start the CoreOS k8s Cluster App and from menu Setup and choose: Initial setup of CoreOS-Vagrant k8s Cluster

The install will do the following:

  • All dependent files/folders will be put under coreos-k8s-cluster folder in the user's home folder
  • It will clone latest coreos-vagrant from git
  • user-data files will have fleet, etcd and flannel set
  • master machine will be set with IP 172.17.15.101 and two cluster nodes with IPs: 172.17.15.102 and 172.17.15.103
  • It will download latest vagrant VBox and run vagrant up to initialise VM
  • When you first time install or do 'Up' after destroying k8s cluster, k8s binary files (with the version which was available when the App was built) get copied to CoreOS VMs, this speeds up k8s cluster setup. To update K8s cluster just run from menu 'Updates' - Update Kubernetes cluster and OS X kubectl.
  • It will install fleetctl, etcdctl and kubectl to ~/coreos-k8s-cluster/bin/
  • Kubernetes services will be installed with fleet units which are placed in ~/coreos-k8s-cluster/fleet, this allows very easy updates to fleet units if needed.
  • Also DNS Add On will be installed

How it works

Just start CoreOS k8s Cluster application and you will find a small icon with the CoreOS logo with (K) which means for k8s cluster in the Status Bar.

  • There you can Up, Suspend, Halt, Reload CoreOS vagrant VMs
  • Under Up (first does 'vagrant up') and OS Shell OS Shell (terminal) will have such environment set:
1) kubernetes master - export KUBERNETES_MASTER=http://172.17.15.101:8080
2) etcd endpoint - export ETCDCTL_PEERS=http://172.17.15.101:4001
3) fleetctl endpoint - export FLEETCTL_ENDPOINT=http://172.17.15.101:4001
4) fleetctl driver - export FLEETCTL_DRIVER=etcd
5) Path to ~/coreos-osx-cluster/bin where etcdctl, fleetctl and kubernetes binaries are stored
  • Updates/Update Kubernetes cluster and OS X kubectl will update to latest version of Kubernetes.
  • Updates/Update OS X fleetctl, etcdclt and fleet units will update fleetctl, etcdclt clients to the same versions as CoreOS VMs run and to latest fleet units if the new version of App is used.
  • Updates/Force CoreOS update will be run sudo update_engine_client -update on each CoreOS VM.
  • Updates/Check updates for CoreOS vbox will update CoreOS VM vagrant box.
  • SSH to k8smaster01 and k8snode-01/02 menu options will open VM shells
  • node1/2 cAdvisor will open cAdvisor URL in default browser
  • Fleet-UI dashboard will show running fleet units and etc
  • Kubernetes-UI (contributed by Kismatic.io) will show nice Kubernetes Dashboard, where you can check Nodes, Pods, Replication Controllers and etc.

Example ouput of succesfull CoreOS + Kubernetes cluster install:

$ 
etcd cluster:
/registry
/coreos.com

fleetctl list-machines:
MACHINE		IP		METADATA
9b88a46c...	172.17.15.103	role=node
d0c68677...	172.17.15.102	role=node
f93b555e...	172.17.15.101	role=control

fleetctl list-units:
UNIT				MACHINE				ACTIVE	SUB
fleet-ui.service		f93b555e.../172.17.15.101	active	running
kube-apiserver.service		f93b555e.../172.17.15.101	active	running
kube-controller-manager.service	f93b555e.../172.17.15.101	active	running
kube-kubelet.service		9b88a46c.../172.17.15.103	active	running
kube-kubelet.service		d0c68677.../172.17.15.102	active	running
kube-proxy.service		9b88a46c.../172.17.15.103	active	running
kube-proxy.service		d0c68677.../172.17.15.102	active	running
kube-scheduler.service		f93b555e.../172.17.15.101	active	running

k8s nodes list:
NAME                LABELS              STATUS
172.17.15.102       node=worker1        Ready
172.17.15.103       node=worker2        Ready

Usage

You're now ready to use Kubernetes cluster.

Some examples to start with Kubernetes examples.

Other links

More Repositories

1

helm-tiller

Helm v2 Tiller plugin aka Tillerless Helm
Shell
255
star
2

charts

Helm Charts for Kubernetes
Mustache
90
star
3

hostpath-provisioner

Dynamic Provisioning of Kubernetes HostPath Volumes
Go
52
star
4

glusterfs-gce

Bootstrap HA GlusterFS Cluster in GCE
Shell
37
star
5

coreos-cluster-osx

CoreOS Cluster for OS X
Shell
36
star
6

coreos-essentials-book

Code/Examples for CoreOS Essentials Book
Shell
34
star
7

kube-gce

Bootstrap Kubernetes Cluster on CoreOS in GCE
Shell
31
star
8

cloud-builders-helm

GCP Cloud Build with Helm
Shell
28
star
9

gke-haproxy-lb

HAProxy based External/Internal LoadBalancer for GKE clusters
Shell
15
star
10

helm-linter

Helm-linter plugin to check hard-coded passwords in charts
Smarty
12
star
11

coreos-kubernetes-solo-osx

CoreOS-Vagrant Kubernetes Solo for OS X
Shell
11
star
12

dcos-k8s-beer-demo

Beer App demo on DC/OS + Kubernetes + Helm + Cloudflare Warp
Smarty
11
star
13

nginx-proxy-confd-etcd

nginx proxy with confd+etcd support
Shell
10
star
14

nfs-client-provisioner

External NFS client provisioner for dynamic PVC creation
Go
10
star
15

kube-notes-examples

5
star
16

charts-ci

Docker image with chart-testing CLI tool for linting and testing Helm charts on GKE or EKS
Dockerfile
5
star
17

deis-workflow-gke

Install Deis Workflow PaaS on to GKE without fuss
Shell
5
star
18

deis-workflow-aws

Install/Upgrade Deis Workflow PaaS in AWS without fuss
Shell
4
star
19

security-sample-app

Security sample app
Go
2
star
20

boot2docker-gui-osx

This was a Docker desktop tool on Mac back in 2014 as there was no Docker Desktop yet.
Objective-C
2
star
21

kubernetes-deploy

Shell
1
star
22

helm-chartify

Create Helm Charts from Kubernetes api objects
1
star
23

dockerfiles

dockerfiles
Shell
1
star
24

mk

A simple wrapper for minikube cli
Shell
1
star
25

charts-testing-travisci

Smarty
1
star
26

example-guestbook

Example Guestbook for Deis Workflow PaaS
JavaScript
1
star