Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.08 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.08 KB

Run kubernetes locally with docker

Prerequisite

Download & install on your local machine :

Start cluster

Put this directory in your git project, then :

# Go to the root level of the git project
cd `git rev-parse --show-toplevel`

# Start kind wrapper
sh "$(find . -d -name 'kind')"/run.sh -c create

# Push your docker-compose images into the cluster
sh "$(find . -d -name 'kind')"/run.sh -c build -f docker-compose.yml

# Stop kind wrapper
sh "$(find . -d -name 'kind')"/run.sh -c delete

Cluster

One single node is deployed but it can be customized in ./configs/kind-config.yml. The cluster comes with Traefik ingress controller installed with port mapping on both ports 80 and 443.

The node is using extraMounts to provide a volume binding between host working directory and /app to give the ability to bind mount volumes into containers during development.