CI with K8s Kind

Prerequisites

  • Docker
  • Kubectl

Install

GO111MODULE="on" go get sigs.k8s.io/kind@v0.7.0

Workflow

# Create Cluster
kind create cluster --name backup

# Load a docker image
kind load docker-image <image>:<tag> --name backup
kubectl apply -f <resource my-manifest-using-my-image:unique-tag>

# Get available images on cluster
docker exec -it <node-name> crictl images

# Delete Cluster
kind delete cluster --name backup