When using the helm provider, I’m getting the following error when trying to use “username” and “password” kubernetes authentication when running terraform apply. Below is copy of main.tf:
This works
provider “helm” {
kubernetes {
config_path = “~/.kube/config”
}
}
This throws the follwong error when running terraform apply:
“Error: could not get apiVersions from Kubernetes: could not get apiVersions from Kubernetes: unknown”
provider “helm” {
kubernetes {
host = “https://api.crc.testing:6443”
username = “kubeadmin”
password = “kubeadmin”
insecure = true
}
}
resource “helm_release” “gitops” {
name = “gitops”
chart = “gitops”
repository = “.”
namespace = “helm-gitops”
max_history = 3
create_namespace = true
wait = true
reset_values = true
}