Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.1 KB

kind-installation.md

File metadata and controls

45 lines (33 loc) · 1.1 KB

Create a kind cluster

The Kind cluster is only for development/testing purpose.

Prerequisites

  • Docker installed (Version: v19.03.12+)
  • kind installed (Version: v0.8.1+).
  • kubectl installed (Version: v1.19+)

Prepare kind config

Use the following command to create the kind configuration used for creating a kind cluster with multiple worker nodes:

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
- role: worker

Create the kind cluster

Execute command:

kind create cluster --name myk8s --config kind.yaml

Check the cluster info

Check cluster info by

kubectl cluster-info

Output:

Kubernetes master is running at https://127.0.0.1:39821
KubeDNS is running at https://127.0.0.1:39821/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.