• This repository has been archived on 21/Sep/2020
  • Stars
    star
    156
  • Rank 239,589 (Top 5 %)
  • Language
    Shell
  • License
    Apache License 2.0
  • Created about 9 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

Launch a local Kubernetes cluster via Docker Compose

This project will not be updated to support Kubernetes 1.2. It's easier to start Kubernetes from version 1.2.0 onwards. Only one docker run command is required. Therefore it doesn't really make sense to use Docker Compose any more.

I will be deprecating this project in favour of kid, which is a single Bash script that you can place in your $PATH and call from anywhere.

Launch Kubernetes using Docker via Docker Compose

The following will also be set up for you:

Starting Kubernetes on Linux

On Linux we'll run Kubernetes using a local Docker Engine. You will also need Docker Compose as well as the kubectl tool. To launch the cluster:

./kube-up.sh

Starting Kubernetes on OS X

On OS X we'll launch Kubernetes inside a boot2docker VM via Docker Machine. You will need to have Docker Machine (v0.5.0 or newer), Docker Compose, and the kubectl tool installed locally. First start your boot2docker VM:

docker-machine start <name>
eval "$(docker-machine env $(docker-machine active))"

Then, launch the Kubernetes cluster in boot2docker via Docker Machine:

./kube-up.sh

The script will set up port forwarding so that you can use kubectl locally without having to ssh into boot2docker.

Checking if Kubernetes Is Running

kubectl cluster-info
Kubernetes master is running at http://localhost:8080
KubeUI is running at http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/kube-ui

Accessing Kube UI

You can access Kube UI at http://localhost:8080/ui.

To destroy the cluster

./kube-down.sh

This will also remove any services, replication controllers and pods that are running in the cluster.

More Repositories

1

rex-weather

A sample Android project demonstrating the use of Retrofit and RxJava to interact with web services
Java
711
star
2

kid

Utility to launch Kubernetes in Docker
Shell
141
star
3

grpc-swift-combine

Combine framework integration for Swift gRPC
Swift
74
star
4

klusterd

Akka Clustering with Kubernetes: A Sample Project
Scala
66
star
5

cassandra-kubernetes

Easily launch a Cassandra cluster on Kubernetes
Shell
60
star
6

grpc-scala-microservice-kit

A starter kit for building microservices using gRPC and Scala
Scala
24
star
7

concourse-kubernetes

Concourse CI on Kubernetes
Shell
14
star
8

grpc-oidc

A Scala library that provides OpenID Connect integration for gRPC
Scala
8
star
9

cleanroom-vim-color

A light, minimal Vim colour scheme that stays out of your way and gives you room to think.
Vim Script
7
star
10

vydark-vim-color

A comfortable, dark Vim colour scheme for everyday use.
Vim Script
6
star
11

darculash

IntelliJ IDEA colour scheme based on Darcula
4
star
12

vyterm-vim-color

Vim Script
2
star
13

geohash-tool

A Cocoa application for working with Geohashes
Swift
2
star
14

elixir-weather

Simple command line weather utility written in Elixir
Elixir
2
star
15

homelab

Home Kubernetes Cluster
Makefile
1
star
16

concourse-web-docker

Docker image for running the web component of the Concourse CI binary distribution
Shell
1
star
17

concourse-worker-docker

Docker image for running the worker component of the Concourse CI binary distribution
Shell
1
star
18

reverse-geocoder

Reverse geocoding served over gRPC, written in Scala
Scala
1
star
19

healthttpd

A tiny Scala library that provides a lightweight health and readiness status server
Scala
1
star
20

here-and-now

iOS Weather App with experimental architecture based on nestable components and RxSwift
Swift
1
star