Kind Concepts: Difference between revisions

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


=Cluster=
=Cluster=
A Kubernetes cluster can be created with <code>[[Kind_Operations#Create_Cluster|kind create cluster]]</code>.  
A Kubernetes cluster can be created with <code>[[Kind_Operations#Create_Cluster|kind create cluster]]</code>. The "nodes" are implemented as Docker containers. Upon creation of a default cluster, it will report two nodes, "kind-control-plane" and "kind-worker". The corresponding Docker containers are:
 
<font size=-2>
CONTAINER ID  IMAGE                                                        COMMAND                  CREATED            STATUS            PORTS                                                NAMES
3108457ff1b6  [...]/kind:v1.27.3-3966ac76  "/usr/local/bin/entr…"  59 minutes ago      Up 59 minutes                                                            kind-worker
c90cb24cc040  [...]kind:v1.27.3-3966ac76  "/usr/local/bin/entr…"  59 minutes ago      Up 59 minutes      127.0.0.1:6443->6443/tcp, 127.0.0.1:9999->30999/tcp  kind-control-plane
2702defb0752  [...]/registry:2                          "/entrypoint.sh /etc…"  About an hour ago  Up About an hour  127.0.0.1:5001->5000/tcp                              kind-registry
</font>


<font color=darkkhaki>What is a kind cluster? Where does it live?</font>
<font color=darkkhaki>What is a kind cluster? Where does it live?</font>

Revision as of 23:51, 5 December 2023

Internal

Overview

kind is a tool for running local Kubernetes clusters using Docker container "nodes". kind was primarily designed for testing Kubernetes itself, but may be used for local development or CI.

Cluster

A Kubernetes cluster can be created with kind create cluster. The "nodes" are implemented as Docker containers. Upon creation of a default cluster, it will report two nodes, "kind-control-plane" and "kind-worker". The corresponding Docker containers are:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3108457ff1b6 [...]/kind:v1.27.3-3966ac76 "/usr/local/bin/entr…" 59 minutes ago Up 59 minutes kind-worker c90cb24cc040 [...]kind:v1.27.3-3966ac76 "/usr/local/bin/entr…" 59 minutes ago Up 59 minutes 127.0.0.1:6443->6443/tcp, 127.0.0.1:9999->30999/tcp kind-control-plane 2702defb0752 [...]/registry:2 "/entrypoint.sh /etc…" About an hour ago Up About an hour 127.0.0.1:5001->5000/tcp kind-registry

What is a kind cluster? Where does it live?

"Node" Image

https://kind.sigs.k8s.io/docs/design/node-image

The “node” image is a Docker image for running nested containers, systemd, and Kubernetes components.

Node Provider

Container Provider

KIND_EXPERIMENTAL_PROVIDER