You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
terraform {
required_providers {
kubernetes = {
source ="hashicorp/kubernetes"
version ="~> 2.21"
}
tls = {
source ="hashicorp/tls"
version ="~> 4.0"
}
helm = {
source ="hashicorp/helm"
version ="~> 2.10"
}
}
}
# +------------+# | 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 ="my_user"
password ="my_password"
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
}
Question
When running terraform apply using the username / password option, the following error is returned:
Error: could not get apiVersions from Kubernetes: could not get apiVersions from Kubernetes: unknown
│
│ with helm_release.gitops,
│ on main.tf line 43, in resource "helm_release" "gitops":
│ 43: resource "helm_release" "gitops" {
Is this the proper syntax?
Thanks in advance
The text was updated successfully, but these errors were encountered:
If you prefer, you can also ask your question in the Kubernetes community Slack channel #terraform-providers. (Sign up here)
Terraform version, Kubernetes provider version and Kubernetes version
Terraform configuration
Question
When running terraform apply using the username / password option, the following error is returned:Error: could not get apiVersions from Kubernetes: could not get apiVersions from Kubernetes: unknown
│
│ with helm_release.gitops,
│ on main.tf line 43, in resource "helm_release" "gitops":
│ 43: resource "helm_release" "gitops" {
Is this the proper syntax?
Thanks in advance
The text was updated successfully, but these errors were encountered: