Skip to content

xantrix/kind-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kind-boilerplate

A simple boilerplate for Kubernetes Kind

Install multi-node, ingress-ready cluster

Install Kind

kind create cluster --name kind --config cluster.yaml

In order to interact with a specific cluster, you only need to specify the cluster name as a context in kubectl:

kubectl cluster-info --context kind-kind

You should see an output like this

Kubernetes master is running at https://127.0.0.1:32771
KubeDNS is running at https://127.0.0.1:32771/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

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

Install Web UI (Dashboard)

Follow Web UI installation

Install Nginx ingress

These steps are taken from Official kind docs

Setting Up An Nginx Ingress Controller

Apply kind specific manifest see ingress/deploy.yaml

kubectl apply -f ingress/deploy.yaml

Using ingress

The following example creates simple http-echo services and an Ingress object to route to these services

kubectl apply -f ingress/usage.yaml

Verify that the ingress works

# should output "foo"
curl localhost/foo
# should output "bar"
curl localhost/bar

Manage your cluster

Install K9s

K9s is a terminal based UI to interact with your Kubernetes clusters. The aim of this project is to make it easier to navigate, observe and manage your deployed applications in the wild. K9s continually watches Kubernetes for changes and offers subsequent commands to interact with your observed resources.

Kubernetes resources

K8s Api reference

Delete cluster

kind delete cluster --name kind