From 3d129feb656da52a16f035dcfa77ad301808cc0c Mon Sep 17 00:00:00 2001 From: snowbldr Date: Tue, 15 Jun 2021 13:02:50 -0600 Subject: [PATCH] Additions to kind cheatsheet --- kind/README.md | 41 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/kind/README.md b/kind/README.md index 648a3b3..4ff23d9 100644 --- a/kind/README.md +++ b/kind/README.md @@ -9,12 +9,47 @@ To update or switch versions, run `webi kind@stable` (or `@v2`, `@beta`,etc). ## Cheat Sheet -To create a cluster +> Kind uses a single docker container to run a lightweight kubernetes cluster for testing and shenanigans + +User Guide - Quick Start: https://kind.sigs.k8s.io/docs/user/quick-start + +To create a cluster with default name ```bash kind create cluster ``` -To delete a cluster +Create a cluster with a specific name +```bash +kind create cluster --name foo +``` + +List clusters +```bash +kind get clusters +``` + +Specify Kubernetes version +```bash +kind create cluster --image "kindest/node:$favoriteTag" +``` +- pick your $favoriteTag from here: https://hub.docker.com/r/kindest/node/tags?page=1&ordering=last_updated + +Export all logs from a cluster +```bash +kind exports logs $HOME/somedir +``` + +To delete a cluster with default name ```bash kind delete cluster -``` \ No newline at end of file +``` + +To delete a cluster with specific name +```bash +kind delete cluster --name foo +``` + +Get the kubeconfig of a cluster +```bash +kind get kubeconfig --name foo +``` -- 2.25.1