- Use
tfenv
to control terraform version - Use
brew install tfenv
on macOS to installtfenv
- Use
tfenv install 1.1.5
to installterraform 1.1.5 version
- Use
tfenv use 1.1.5
to switch a version
- Use
tgenv
to control terragrunt version - Use
brew install tgenv
on macOS to installtgenv
- Use
tgenv install 0.36.1
to installterragrunt 0.36.1 version
- Use
tgenv use 0.36.1
to switch a version
The detailed document can be found here: https://minikube.sigs.k8s.io/docs/start/
Make sure you can start
The detailed document can be found here: https://kubernetes.io/docs/tasks/tools/
You will need to update live/terragrunt.hcl
to use your own minikube cluster and authentication.
- You can update the
host
to your own ip viaminikube ip
. Note that the ip is the external ip used to access service. - You can update the authenicaion certificates. Get your own one via
minikube config view
provider "kubernetes" {
# Note: replace with your own configurations
host = "https://172.16.58.128:8443"
client_certificate = file("~/.minikube/profiles/minikube/client.crt")
client_key = file("~/.minikube/profiles/minikube/client.key")
cluster_ca_certificate = file("~/.minikube/ca.crt")
}
minikube start
minikube dashboard --url
cd live/dev/k8s
terragrunt init
terragrunt validate
terragrunt plan
terragrunt apply