Skip to main content
🎤 Luca Berton is speaking at Red Hat Summit & KubeCon EU 2026!Learn more →
Back to Blog

Local Kubernetes with Kind

Step-by-step guide to creating a local Kubernetes cluster using Kind for ML model development and testing before deploying to production.

Luca BertonFebruary 26, 20261 min read

Why Kind for ML Development?

Before deploying ML models to a production Kubernetes cluster, you need a local environment to test your deployments. Kind (Kubernetes in Docker) gives you a fully functional Kubernetes cluster running inside Docker containers.

Related Course

Master this topic with hands-on labs

Go beyond reading — build real projects in sandboxed environments with expert video guidance.

Browse Courses →

Installing Kind

Prerequisites

  • Docker installed and running
  • kubectl installed

Install Kind

bash
# Linux/macOS
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

Create a Cluster

bash
kind create cluster --name ml-cluster

Verify it's running:

bash
kubectl cluster-info --context kind-ml-cluster
kubectl get nodes

Configuring for ML Workloads

ML models need more resources than typical web services. Create a cluster config:

yaml
# kind-config.yaml
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
  - role: control-plane
  - role: worker
    extraMounts:
      - hostPath: /tmp/ml-models
        containerPath: /models
bash
kind create cluster --name ml-cluster --config kind-config.yaml
Stay Updated

Get weekly IT automation tips

Docker, Ansible, Terraform, MLOps — curated insights delivered to your inbox. No spam.

Subscribe Free →

Installing the Kubernetes Dashboard

Visualize your cluster's state:

bash
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml

Create a service account for dashboard access:

bash
kubectl create serviceaccount dashboard-admin -n kubernetes-dashboard
kubectl create clusterrolebinding dashboard-admin \
  --clusterrole=cluster-admin \
  --serviceaccount=kubernetes-dashboard:dashboard-admin

Next Steps

With your local cluster running, you're ready to: - Install KServe for model serving - Deploy your first MLflow model - Test inference locally before going to production

Learn the complete workflow in our MLflow for Kubernetes course.

---

Ready to go deeper? Check out our hands-on course: MLflow for Kubernetes — practical exercises you can follow along on your own machine.

Ready to learn by doing?

Stop reading tutorials — start building. Expert video courses with hands-on labs in real sandboxed environments.

Share this article
LB
Luca Berton

Docker Captain, IT automation expert, Red Hat Summit & KubeCon speaker. Building hands-on education for DevOps engineers at CopyPasteLearn.

Related Articles

Explore topics

Browse more articles on the topics covered here.