Skip to content

rafaelpissolatto/k8s-minikube-with-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k8s-minikube-with-terraform

Builds a K8s cluster using Terraform and Minikube provider

Requirments

  • Terraform
# Linux (for other OS, please double-check: https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli)
wget https://releases.hashicorp.com/terraform/1.7.1/terraform_1.7.1_linux_amd64.zip;
unzip terraform_1.7.1_linux_amd64.zip;
sudo mv terraform /usr/local/bin/;
rm terraform_1.7.1_linux_amd64.zip;
terraform version;
  • Minikube:
# Linux (for other OS, please double-check: https://minikube.sigs.k8s.io/docs/start/)
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube

Usage

To create a cluster using this project, please follow these simple instructions:

  • Init
terraform init
  • Plan
terraform plan -out my-local-k8s-cluster
  • Apply
terraform apply "my-local-k8s-cluster"

Customize

To customize the installation, please use the locals.tf to change the values if needed.

About

Build a K8s cluster using Terraform and Minikube provider

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages