It helps you to run a pod and deploy Pi-hole on it.
If you have a config file in .kube
folder:
variable "config_context_auth_info" {
description = "The Context User from ~/.kube/config"
default = "kubernetes-admin"
}
variable "config_context_cluster" {
description = "The Context Cluster from ~/.kube/config"
default = "kubernetes"
}
For configuring the password, you need to set it in secret.tfvars
file. You can easilz rename secret-example.tfvars
to secret.tfvars
and reuse it.
Validate the templates:
terraform plan -var-file="secret.tfvars"
Deploy the code:
terraform apply -var-file="secret.tfvars"