Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.25 KB

README.md

File metadata and controls

37 lines (24 loc) · 1.25 KB

Run kubernetes locally with docker

Prerequisite

Download & install on your local machine :

Declare your images into the ./docker-compose.yml file, it is used for parralel build and load images into Kind nodes.

Commands

Put this directory in your git project, then start using the script :

# Start kind cluster
sh ./run.sh -c create

# Build and load docker-compose images into the cluster
sh ./run.sh -c build

# Stop kind cluster
sh ./run.sh -c delete

# Start kind cluster, build and load images and deploy app
sh ./run.sh -c dev

Tip

See script helper by running sh ./run.hs -h

Cluster

One single node is deployed but it can be customized in ./configs/kind-config.yml. The cluster comes with Traefik or Nginx 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.