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