Kind Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 5: Line 5:
brew install kind
brew install kind
</syntaxhighlight>
</syntaxhighlight>
If there is no Docker:
 
<syntaxhighlight lang='bash'>
 
KIND_EXPERIMENTAL_PROVIDER=podman kind create cluster
<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>
</syntaxhighlight>


=Cluster=
=Cluster=
See: {{Internal|Kind_Concepts#Cluster|Kind Cluster}}
See: {{Internal|Kind_Concepts#Cluster|Kind Cluster}}
==Create Cluster==
==Create 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'>
export KIND_EXPERIMENTAL_PROVIDER=docker
kind create cluster
</syntaxhighlight>
By default, the cluster is named "kind".
Upon creation, it can be listed with <code>kind get clusters</code>. Nodes can be listed with: <code>kind get nodes</code>.
==Delete Cluster==
==Delete Cluster==
<syntaxhighlight lang='bash'>
kind delete cluster
Deleting cluster "kind" ...
Deleted nodes: ["kind-worker" "kind-control-plane"]
</syntaxhighlight>
==Get Clusters==
<syntaxhighlight lang='bash'>
kind get clusters
</syntaxhighlight>
=Nodes=
==Get Nodes==
<syntaxhighlight lang='bash'>
kind get nodes
</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