micro
develop
develop
  • Micro Starter Kit
  • Features
  • Getting Started
    • Why
    • Prerequisites
    • Installation
    • Makefile
  • Concepts
    • Introduction
    • Configuration
    • State
    • Select
  • Advanced
    • Dependency Injection
    • Logging
    • Error Handling
    • Life-cycle
    • Git Flow
    • Git Ops
    • mTLS
    • Release
    • Release Process
    • Pub Sub
    • Troubleshooting
  • Modules
    • Commands
      • Demo
    • Services
      • Account
      • Emailer
      • Greeter
      • Recorder
  • DevOps
    • Docker
    • KinD
    • Istio
  • Testing
    • Intro
    • Mock
    • Bloom RPC
  • Recipes
    • Authentication
    • Caching
    • Health Checks
    • Performance Testing
    • Dynamic Plugins
    • Immutability Helpers
    • Style Guide
    • Unit Testing
  • Community
    • Resources
    • Contributors
    • Contributing
  • Change Log
  • FAQ
Powered by GitBook
On this page
  • Prerequisite
  • Install
  • Usage
  • Create a cluster
  • Interacting With Your Cluster
  • Loading
  • Reference

Was this helpful?

  1. DevOps

KinD

Ephemeral Kubernetes Clusters with KinD

Prerequisite

# install `docker for mac`
brew cask install docker
# then go to the gui launcher and start up docker, and follow the prompts.
# uninstalling `docker for mac`
brew cask zap docker

# brew cask install minikube

Install

GO111MODULE=on go get sigs.k8s.io/kind

Usage

Create a cluster

for help kind [command] --help

kind create cluster # Default cluster context name is `kind`.
# with name
kind create cluster --name blog --wait 5m

# list clusters
kind get clusters

# Deleting a Cluster
kind delete cluster

verify kindest/node container running with docker ps

Interacting With Your Cluster

export KUBECONFIG="$(kind get kubeconfig-path)"
# export KUBECONFIG="$(kind get kubeconfig-path --name blog)"
kubectl cluster-info

Loading

Loading an Image Into Your Cluster

kind load docker-image my-custom-image:unique-tag
kind load docker-image ko.local/ko-demo-7a5550aba07ee9abc7c6c2992dc2c243:0f9dea87eb5c56703dc806e05d70276ca14014c9dc49ca8c8cb88507f8997a72

Reference

PreviousDockerNextIstio

Last updated 5 years ago

Was this helpful?

https://kind.sigs.k8s.io/
https://blog.alexellis.io/be-kind-to-yourself/
https://garethr.dev/2019/05/ephemeral-kubernetes-clusters-with-kind-and-make/
Running end-to-end tests on your Kubernetes cluster with Kind and Brigade