This commit is contained in:
parent
8479613654
commit
c0ab1d816a
@ -420,12 +420,15 @@ 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]
|
||||||
|
|
||||||
|
toleration {
|
||||||
key = "nvidia.com/gpu"
|
key = "nvidia.com/gpu"
|
||||||
operator = "Exists"
|
operator = "Exists"
|
||||||
effect = "NoSchedule"
|
effect = "NoSchedule"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block kubernetes_pod_main_container %}
|
{% block kubernetes_pod_main_container %}
|
||||||
|
|||||||
Reference in New Issue
Block a user