Kind Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
brew install kind
brew install kind
</syntaxhighlight>
</syntaxhighlight>
<font color=darkkhaki>Alternate installation instructions provided by YuniKorn developer documentation: https://yunikorn.apache.org/docs/next/developer_guide/env_setup/#local-kubernetes-cluster-with-kind</font>


=Cluster=
=Cluster=
Line 10: Line 13:
==Create Cluster==
==Create Cluster==
{{External|https://kind.sigs.k8s.io/docs/user/quick-start/#creating-a-cluster}}
{{External|https://kind.sigs.k8s.io/docs/user/quick-start/#creating-a-cluster}}
This will bootstrap a Kubernetes cluster using a predefined [[Kind_Concepts#Node_Image|node image]].
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
export KIND_EXPERIMENTAL_PROVIDER=docker
export KIND_EXPERIMENTAL_PROVIDER=docker
Line 20: Line 24:


==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'>
Line 29: Line 39:
kind get nodes
kind get nodes
</syntaxhighlight>
</syntaxhighlight>
==Load Images into a Node==
<syntaxhighlight lang='bash'>
kind load
</syntaxhighlight>
<font color=darkkhaki>Is this necessary with a cluster-wide registry? See [[Kind_Concepts#Registry|kind Registry]] and [[Kind_Concepts#Image_Handling|kind Image Handling]]</font>

Latest revision as of 23:58, 7 December 2023

Internal

Installation

brew install kind


Alternate installation instructions provided by YuniKorn developer documentation: https://yunikorn.apache.org/docs/next/developer_guide/env_setup/#local-kubernetes-cluster-with-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

Load Images into a Node

kind load

Is this necessary with a cluster-wide registry? See kind Registry and kind Image Handling