Kube-vip on KIND

Deploying KIND

The documentation for KIND is fantastic and it's quickstart guide will have you up and running in no time -> https://kind.sigs.k8s.io/docs/user/quick-start/

Find Address Pool for Kube-Vip

We will need to find addresses that can be used by Kube-Vip:

docker network inspect kind -f '{{ range $i, $a := .IPAM.Config }}{{ println .Subnet }}{{ end }}'

This will return a cidr range such as and from here we can select a range.

Deploy the Kube-Vip Cloud Controller

$ kubectl apply -f https://raw.githubusercontent.com/kube-vip/kube-vip-cloud-provider/main/manifest/kube-vip-cloud-controller.yaml

Add our Address range

kubectl create configmap --namespace kube-system kubevip --from-literal range-global=

Install kube-vip

Set the correct alias for kube-vip

alias kube-vip="docker run --network host --rm plndr/kube-vip:v0.3.5"

Install Kube-vip deamonset inside of KIND

kube-vip manifest daemonset --services --inCluster --arp --interface eth0 | ./kubectl apply -f -


kubectl apply -f https://k8s.io/examples/application/deployment.yaml
kubectl expose deployment nginx-deployment --port=80 --type=LoadBalancer --name=nginx
kubectl get svc
NAME         TYPE           CLUSTER-IP      EXTERNAL-IP     PORT(S)        AGE
kubernetes   ClusterIP       <none>          443/TCP        74m
nginx        LoadBalancer   80:31236/TCP   6s