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