Skip to content

NaumanMunir9/Create-Multi-Node-Local-Kubernetes-Cluster--KinD--with-LoadBalancer--Metallb-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Create Multi-Node Local Kubernetes Cluster (KinD) with LoadBalancer (Metallb)

Create Kubernetes Cluster with KinD

KinD Documentation

  • 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.

KinD config to create multi-node cluster

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

Installing Metallb in KinD Kubernetes

Installing Metallb in KinD

Apply MetalLB manifest
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.7/config/manifests/metallb-native.yaml
kubectl wait --namespace metallb-system \
                --for=condition=ready pod \
                --selector=app=metallb \
                --timeout=90s
Setup address pool used by loadbalancers
docker network inspect -f '{{.IPAM.Config}}' kind
kubectl apply -f https://kind.sigs.k8s.io/examples/loadbalancer/metallb-config.yaml

About

Create Multi-Node Local Kubernetes Cluster (KinD) with LoadBalancer (Metallb)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published