Skip to content

00 Verify Cluster

01. Installing Kind

  • If you don’t have an existing cluster you can use google cloud for the labs hands-on
  • Click on the button below to be able to run the labs on Google Shell
    [Use: CTRL + click to open in new window]

    Open in Cloud Shell

  • Run the following commands based on your operating system:

# Install Kind using Homebrew
brew install kind

# Verify installation
kind version
# Download Kind binary
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind

# Verify installation
kind version
# Download Kind binary
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind

# Verify installation
kind version

02. Create Kind cluster

kind create cluster
  • You should see an output like this:
Creating cluster "kind" ...
  Ensuring node image (kindest/node:v1.27.3) 🖼
  Preparing nodes 📦
  Writing configuration 📜
  Starting control-plane 🕹️
  Installing CNI 🔌
  Installing StorageClass 💾
Set kubectl context to "kind-kind"
You can now use your cluster with:

kubectl cluster-info --context kind-kind

Thanks for using kind! 😊

03. Check the Kind cluster status

kubectl cluster-info
  • You should see output similar to this one:
Kubernetes control plane is running at https://127.0.0.1:6443
CoreDNS is running at https://127.0.0.1:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

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

04. Verify that the cluster is up and running

kubectl cluster-info
  • Verify that kubectl is installed and configured
kubectl config view
  • You should get something like the following
    apiVersion: v1
    clusters:
    - cluster:
        certificate-authority-data: DATA+OMITTED
        server: https://127.0.0.1:6443
      name: kind-kind
    contexts:
    - context:
        cluster: kind-kind
        user: kind-kind
      name: kind-kind
    current-context: kind-kind
    kind: Config
    preferences: {}
    users:
    - name: kind-kind
      user:
        client-certificate-data: REDACTED
        client-key-data: REDACTED
    

05. Verify that you can “talk” to your cluster

# Check the nodes in the Kind cluster
kubectl get nodes
  • You should see output similar to this:
NAME                 STATUS   ROLES           AGE    VERSION
kind-control-plane   Ready    control-plane   2m     v1.27.3