larsthorup / k8s-kind-sandbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

k8s-kind-sandbox

Build Status

This repo demonstrates how to test docker and k8s scripts on Travis-CI or any other CI service with no signup to any cloud services required.

The scripts also run successfully locally on Windows using "minikube" (instead of "kind").

Inspired by this blog post: https://dzone.com/articles/running-kubernetes-in-the-ci-pipeline-for-integrat

Prequisites

bash --version
docker --version

Build image

cd src
build.sh

Deploy to cluster (not minikube)

cd infra
setup-kind-cluster.sh
load.sh
deploy.sh
expose.sh
test.sh

Deploy to minikube

cd infra
load-in-minikube-as-admin.ps1 # as admin
deploy.sh
expose.sh
test.sh

About


Languages

Language:Shell 76.1%Language:PowerShell 12.2%Language:JavaScript 5.9%Language:Dockerfile 5.8%