terraform-provider-helm

Terraform Helm provider

Github星跟蹤圖

Terraform Provider for Helm
Build Status
GitHub tag (latest SemVer)
license

This is a Helm provider for Terraform.

The provider manages the installed Charts in your Kubernetes cluster, in the same way Helm does, through Terraform.

⚠️ Project Update: Helm 3

The latest release 1.0.0 for this provider brings support for Helm 3. This is a breaking change that removes support for Helm 2 and tiller. If you are still using Helm 2 see the section below.

Helm 2 support

If you are still using Helm 2 and tiller you will have to pin your provider version to the latest 0.10.x release.

We will continue to accept bugfixes for the 0.10.x version of the provider, please open your pull request against the latest release-0.10.x branch.

Contents

Developing the Provider

Installation from sources

If you wish to compile the provider from source code, you'll first need Go installed on your machine (version >=1.9 is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

Clone repository to: $GOPATH/src/github.com/terraform-providers/terraform-provider-helm

> mkdir -p $GOPATH/src/github.com/terraform-providers
> git clone https://github.com/terraform-providers/terraform-provider-helm.git $GOPATH/src/github.com/terraform-providers/terraform-provider-helm

Enter the provider directory and build the provider

> cd $GOPATH/src/github.com/terraform-providers/terraform-provider-helm
> make build

Now copy the compiled binary to the Terraform's plugins folder, if is your first plugin maybe isn't present.

> mkdir -p ~/.terraform.d/plugins/
> mv terraform-provider-helm ~/.terraform.d/plugins/

Example

This is a small example of how to install the mariadb chart on your default
kubernetes cluster, since the provider was initialized, all the configuration
is retrieved from the environment. Please read the documentation for more
information.

You should have a local configured copy of kubectl.

resource "helm_release" "my_database" {
    name      = "my-database"
    chart     = "stable/mariadb"

    set {
        name  = "mariadbUser"
        value = "foo"
    }

    set {
        name = "mariadbPassword"
        value = "qux"
    }

    set_string {
        name = "image.tags"
        value = "registry\\.io/terraform-provider-helm\\,example\\.io/terraform-provider-helm"
    }
}

License

Mozilla Public License 2.0, see LICENSE

主要指標

概覽
名稱與所有者hashicorp/terraform-provider-helm
主編程語言Go
編程語言Go (語言數: 4)
平台
許可證Mozilla Public License 2.0
所有者活动
創建於2017-06-25 15:30:14
推送於2025-07-16 16:24:14
最后一次提交
發布數70
最新版本名稱v3.0.2 (發布於 )
第一版名稱v0.1.0 (發布於 )
用户参与
星數1k
關注者數40
派生數400
提交數725
已啟用問題?
問題數845
打開的問題數97
拉請求數497
打開的拉請求數32
關閉的拉請求數277
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?