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