A simple boilerplate for Kubernetes Kind
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'.
Follow Web UI installation
These steps are taken from Official kind docs
Apply kind specific manifest see ingress/deploy.yaml
kubectl apply -f ingress/deploy.yaml
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
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
- https://kubernetes.io/docs/reference/kubectl/cheatsheet/
- https://kubectl.docs.kubernetes.io/
- https://kubernetesbyexample.com/
K8s Api reference
kind delete cluster --name kind