Announcing Version 2.0 of the Kubernetes and Helm Providers for HashiCorp Terraform
Version 2.0 of the Kubernetes and Helm providers includes a more declarative authentication flow, alignment of resource behaviors and attributes with upstream APIs, normalized wait conditions across several resources, and removes support for Helm v2.
The HashiCorp Terraform Strategic Integrations team is excited to announce the release of major version 2.0 for the Kubernetes and Helm providers for HashiCorp Terraform. This major release includes some significant changes to authentication, an upgrade to the new Terraform SDK as well as improvements to resources to improve consistency and align more closely with the Kubernetes API. We discuss a select few changes in detail below, and for the full list of changes you can look to the Helm provider changelog and Kubernetes provider changelog.
Please read the upgrade guides for each provider before upgrading. You can find the upgrade guide for the Helm provider here and the Kubernetes provider here.
» Changes to Provider Authentication
The Kubernetes and Helm providers’ v1.x authentication scheme made it easy for new users to start out with a single cluster. However, we found that it made things more complicated for users who were managing multiple Kubernetes clusters, a common scenario among the providers’ users. For these users, the providers’ default assumption that users wanted to use the configuration set in the KUBECONFIG environment variable sometimes resulted in accidental application of configuration to the wrong cluster.
In order to promote explicit declaration of access credentials and avoid accidental misconfiguration of the Kubernetes and Helm providers, we are removing support for the KUBECONFIG
environment variable and the load_config_file
attribute in the provider configuration block. Instead, we are now offering the ability to set an explicit KUBE_CONFIG_PATH
or KUBE_CONFIG_PATHS
in the provider configuration block to allow you to configure the provider with a given kubeconfig
file.
» Deprecated Support for Terraform v0.11
In November 2019, we announced that we would be deprecating support for Terraform v0.11. With the upgrade to the new Terraform SDK in these new providers, we now no longer support Terraform v0.11. Please upgrade your terraform version before proceeding with the upgrade to the 2.0 version of the Helm and Kubernetes providers.
» Helm v2 Support Removed
We have removed support for Helm v2 in accordance with the Helm v2 deprecation timeline. The last version of the provider that supports Helm v2 is provider version v0.10.6. We will no longer be accepting pull requests for bug fixes related to this version going forward.
» Kubernetes Resource Alignment
Besides the authentication changes discussed above, we took the opportunity to align many of the resources in the Kubernetes provider with the upstream Kubernetes API and with each other. Included in these changes is an update to the automount_service_account_token
default on all resources that include PodSpec - it now defaults to true
. See the changelog and upgrade guides above for a comprehensive list of updates.
We would love to hear your feedback on these updates! You can post bugs and feature requests for the Helm provider by opening an issue at hashicorp/terraform-provider-helm, or the Kubernetes provider at hashicorp/terraform-provider-kubernetes. You can also engage with us and the community on HashiCorp Discuss and in #terraform-providers on the Kubernetes Slack (Sign up here).
To discover more about managing Kubernetes with Terraform, review the guides in our Manage Kubernetes with Terraform collection on HashiCorp Learn. There you can find tutorials for our Kubernetes and Helm providers.
Sign up for the latest HashiCorp news
More blog posts like this one
New Terraform integrations with Crowdstrike, Datadog, JFrog, Red Hat, and more
12 new Terraform integrations from 9 partners provide more options to automate and secure cloud infrastructure management.
Terraform delivers launch-day support for Amazon S3 Tables, EKS Hybrid Nodes, and more at re:Invent
The Terraform provider for AWS now enables users to manage a variety of new services just announced at re:Invent.
HashiCorp at re:Invent 2024: Infrastructure Lifecycle Management with AWS
A recap of HashiCorp infrastructure news and developments on AWS from the past year, from a new provider launch to simplifying infrastructure provisioning and more.