Create a kind cluster using tehcyx Terraform provider.
Following components will be installed via Helm Terraform provisioner:
-
kubernetes dashboard: a general- purpose web UI for Kubernetes clusters
-
Prometheus stack (kube-prometheus-stack): AlertManager, Grafana, kube-state-metrics, Node Exporter, Prometheus
Operator Lifecycle Manager (OLM)
will be installed via operator-sdk
so be
sure to install OLM CLI
before running Terraform plan.
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