Kind Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Kind")
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Internal=
=Internal=
* [[Kind#Subjects|Kind]]
* [[Kind#Subjects|Kind]]
=Installation=
<syntaxhighlight lang='bash'>
brew install kind
</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=
See: {{Internal|Kind_Concepts#Cluster|Kind 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==
<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