fix?
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Steve McMaster 2024-07-20 13:55:09 -04:00
parent 8479613654
commit c0ab1d816a

View File

@ -420,11 +420,14 @@ resource "kubernetes_deployment" "main" {
{% endblock %} {% endblock %}
{% block kubernetes_pod_main_tolerations %} {% block kubernetes_pod_main_tolerations %}
toleration { dynamic "gpu_toleration" {
for_each = data.coder_parameter.gpu.value == 0 ? [] : [1] for_each = data.coder_parameter.gpu.value == 0 ? [] : [1]
key = "nvidia.com/gpu"
operator = "Exists" toleration {
effect = "NoSchedule" key = "nvidia.com/gpu"
operator = "Exists"
effect = "NoSchedule"
}
} }
{% endblock %} {% endblock %}