Skip to content

vagrant machine installing docker, kubectrl and kind to run a simple dev kubernetes cluster

License

Notifications You must be signed in to change notification settings

wlanboy/vagrantkind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vagrantkind

vagrant machine installing docker, kubectrl, istioctl, helm and kind to run a simple local kubernetes cluster

simple path without istio, but with calico and ingress

gists for WSL

create vm

  • vagrant up

ssh into vm

  • vagrant ssh

create kind kubernetes cluster

  • kind create cluster

or create kind cluster with config for all services (calico + istio)

destroy kind kubernetes cluster

  • kind delete cluster
  • or kind delete clusters kindcluster

example log for cluster creation

vagrant@kind:~$ kind create cluster
Creating cluster "kind" ...
 ✓ Ensuring node image (kindest/node:v1.21.1) 🖼
 ✓ 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

get basic cluster information

  • kubectl cluster-info --context kind-kind
vagrant@kind:~$ kubectl cluster-info --context kind-kind
Kubernetes control plane is running at https://127.0.0.1:40239
CoreDNS is running at https://127.0.0.1:40239/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
  • kubectl get nodes
vagrant@kind:~$ kubectl get nodes
NAME                 STATUS   ROLES                  AGE     VERSION
kind-control-plane   Ready    control-plane,master   4m10s   v1.21.1
  • kubectl get pods --all-namespaces
vagrant@kind:~$ kubectl get pods --all-namespaces
NAMESPACE            NAME                                         READY   STATUS    RESTARTS   AGE
kube-system          coredns-558bd4d5db-c97b5                     1/1     Running   0          4m
kube-system          coredns-558bd4d5db-vgdhk                     1/1     Running   0          4m
kube-system          etcd-kind-control-plane                      1/1     Running   0          4m9s
kube-system          kindnet-5lg65                                1/1     Running   0          4m1s
kube-system          kube-apiserver-kind-control-plane            1/1     Running   0          4m9s
kube-system          kube-controller-manager-kind-control-plane   1/1     Running   0          4m16s
kube-system          kube-proxy-5gv5b                             1/1     Running   0          4m1s
kube-system          kube-scheduler-kind-control-plane            1/1     Running   0          4m9s
local-path-storage   local-path-provisioner-547f784dff-gbhsc      1/1     Running   0          4m

see shell scripts to install calico and istio

deploy echo service for testing

  • kubectl apply -f echo-pod-service.yml

start deployen Spring Boot based Service

Delete cluster

  • kind delete clusters kindcluster

About

vagrant machine installing docker, kubectrl and kind to run a simple dev kubernetes cluster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages