Terraform Helm 设置容差

Terraform Helm 设置容差

我正在尝试tolerations在 Terraform Helm 中设置occm 图表方式如下:

set {
  name = "tolerations"
  value = yamlencode([
    {
      key    = "node.kubernetes.io/test"
      value  = "true"
      effect = "NoSchedule"
    }
  ])
}

并且失败并出现以下错误:

... invalid type for io.k8s.api.core.v1.PodSpec.tolerations: got "string", expected "array"

我也尝试过:

set_list {
  name = "tolerations"
  value = [
    yamlencode({
      key    = "node.kubernetes.io/test"
      value  = "true"
      effect = "NoSchedule"
    })
  ]
}

但我明白:

... invalid type for io.k8s.api.core.v1.Toleration: got "string", expected "map"

现在我看着这个堆栈溢出帖子,但它们使用不同的方法。有没有办法让它与set或一起工作set_list?我做错了什么?

相关内容