小编Tin*_*215的帖子

使用 helm 提供程序的差异值文件

我希望你能帮助我对我的问题有更多的了解。

目前我正在使用:

  • 地形 v1.3.5
  • 头盔提供商 v2.8.0
  • Kubernetes 提供程序 v2.16.1

最近,我一直在调整 Terraform 上的 Helm 提供程序,以帮助我更有弹性地管理 Helm 版本。plan能够做出改变并了解哪些内容发生了变化以及哪些内容保持不变,这很有帮助。它与基础设施细节融合得非常好,我只需一个工具就可以管理一切,这太棒了。

有件事让我有点困扰。这是terraform plan值文件的预览,它仅显示已进行的一些更改,但不显示更改位置或更改内容。让我添加一个例子。

文件main.tf

# I'm using the "manifest" setting to calculate manifest diffs
provider "helm" {
  kubernetes {
    config_path    = "~/.kube/config"
    config_context = "clusterconfig"
  }
  experiments {
    manifest = true
  }
}

# The helm chart lives locally on my repo. I'm passing the values file and an
#  override for the image tag.
resource "helm_release" "release" { …
Run Code Online (Sandbox Code Playgroud)

kubernetes terraform kubernetes-helm

6
推荐指数
0
解决办法
716
查看次数

标签 统计

kubernetes ×1

kubernetes-helm ×1

terraform ×1