Kind Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 21: Line 21:


==Delete Cluster==
==Delete Cluster==
<syntaxhighlight lang='bash'>
kind delete cluster
Deleting cluster "kind" ...
Deleted nodes: ["kind-worker" "kind-control-plane"]
</syntaxhighlight>
==Get Clusters==
==Get Clusters==
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>

Revision as of 23:55, 5 December 2023

Internal

Installation

brew install kind

Cluster

See:

Kind Cluster

Create Cluster

https://kind.sigs.k8s.io/docs/user/quick-start/#creating-a-cluster

This will bootstrap a Kubernetes cluster using a predefined node image.

export KIND_EXPERIMENTAL_PROVIDER=docker
kind create cluster

By default, the cluster is named "kind".

Upon creation, it can be listed with kind get clusters. Nodes can be listed with: kind get nodes.

Delete Cluster

kind delete cluster
Deleting cluster "kind" ...
Deleted nodes: ["kind-worker" "kind-control-plane"]

Get Clusters

kind get clusters

Nodes

Get Nodes

kind get nodes