This commit is contained in:
parent
b63a39384c
commit
8479613654
11
base.tf.j2
11
base.tf.j2
@ -420,13 +420,12 @@ resource "kubernetes_deployment" "main" {
|
||||
{% endblock %}
|
||||
|
||||
{% block kubernetes_pod_main_tolerations %}
|
||||
toleration = data.coder_parameter.gpu.value == 0 ? [] : [
|
||||
{
|
||||
"key": "nvidia.com/gpu",
|
||||
"operator": "Exists",
|
||||
"effect": "NoSchedule"
|
||||
toleration {
|
||||
for_each = data.coder_parameter.gpu.value == 0 ? [] : [1]
|
||||
key = "nvidia.com/gpu"
|
||||
operator = "Exists"
|
||||
effect = "NoSchedule"
|
||||
}
|
||||
]
|
||||
{% endblock %}
|
||||
|
||||
{% block kubernetes_pod_main_container %}
|
||||
|
||||
Reference in New Issue
Block a user