Skip to content

elmazzun/local-kind-cluster

Repository files navigation

Local KinD Cluster

Create a kind cluster using tehcyx Terraform provider.

Following components will be installed via Helm Terraform provisioner:

Operator Lifecycle Manager (OLM) will be installed via operator-sdk so be sure to install OLM CLI before running Terraform plan.

Create kind cluster

Run the following commands in your shell:

export KUBECONFIG=/tmp/config

terraform init
terraform plan -out=main.plan
terraform apply main.plan

# Use this to login in k8s dashboard
cat dashboard-admin.token

# Expose k8s dashboard at localhost:8443/ (LAST "/" IS ESSENTIAL)
kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-kong-proxy 8443:443
# Expose Prometheus dashboard
kubectl -n monitoring port-forward svc/kube-prometheus-stack-prometheus 9090