This commit is contained in:
parent
dcea534102
commit
586b66438a
@ -421,7 +421,7 @@ resource "kubernetes_deployment" "main" {
|
|||||||
|
|
||||||
{% block kubernetes_pod_main_tolerations %}
|
{% block kubernetes_pod_main_tolerations %}
|
||||||
dynamic "toleration" {
|
dynamic "toleration" {
|
||||||
for_each = data.coder_parameter.gpu.value == 0 ? [] : [1]
|
for_each = data.coder_parameter.gpu.value == "0" ? [] : [1]
|
||||||
|
|
||||||
content {
|
content {
|
||||||
key = "nvidia.com/gpu"
|
key = "nvidia.com/gpu"
|
||||||
|
|||||||
Reference in New Issue
Block a user