我正在嘗試tolerations
在 Terraform Helm 中設定值奧克姆圖透過以下方式:
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
or一起工作set_list
?我究竟做錯了什麼?