/tf-helm-kubernetes-dashboard-and-metrics-server

Deploy Kubernetes Dashboard with Metrics Server using Terraform and Helm on Docker Desktop

Primary LanguageHCLMIT LicenseMIT

Deploy Kubernetes Dashboard with Metrics Server using Terraform and Helm on Docker Desktop

This is a simple example of how to deploy the Kubernetes Dashboard and Metrics Server using Terraform and Helm on Docker Desktop.

Prerequisites

Optional Step 1 - Set the kubectl context to Docker Desktop

If you have multiple kubectl contexts, you can set the current context to Docker Desktop using the following command:

kubectl config use-context docker-desktop

Step 2 - Install Terraform for macOs (if not already installed)

Download and install Terraform from https://www.terraform.io/downloads.html

brew tap hashicorp/tap
brew install hashicorp/tap/terraform

Step 3 - Clone this repository

git clone https://github.com/garis-space/tf-helm-kubernetes-dashboard-and-metrics-server.git
cd tf-helm-kubernetes-dashboard-and-metrics-server

Step 4 - Initialize Terraform

terraform init

Step 5 - Deploy the Kubernetes Dashboard and Metrics Server

terraform apply

Step 6 - Access the Kubernetes Dashboard

# Open the Kubernetes Dashboard (please wait a few minutes for the Kubernetes Dashboard to start and the Metrics Server to collect data)
open https://localhost:9080

Kubernetes Dashboard with Metrics Server

Optional Step 7 - Clean up

terraform destroy