This commit is contained in:
parent
69a3d8b20f
commit
b63a39384c
18
base.tf.j2
18
base.tf.j2
@ -404,14 +404,6 @@ resource "kubernetes_deployment" "main" {
|
||||
}
|
||||
}
|
||||
|
||||
toleration = data.coder_parameter.gpu.value == 0 ? [] : [
|
||||
{
|
||||
"key": "nvidia.com/gpu",
|
||||
"operator": "Exists",
|
||||
"effect": "NoSchedule"
|
||||
}
|
||||
]
|
||||
|
||||
template {
|
||||
metadata {
|
||||
labels = {
|
||||
@ -427,6 +419,16 @@ resource "kubernetes_deployment" "main" {
|
||||
}
|
||||
{% endblock %}
|
||||
|
||||
{% block kubernetes_pod_main_tolerations %}
|
||||
toleration = data.coder_parameter.gpu.value == 0 ? [] : [
|
||||
{
|
||||
"key": "nvidia.com/gpu",
|
||||
"operator": "Exists",
|
||||
"effect": "NoSchedule"
|
||||
}
|
||||
]
|
||||
{% endblock %}
|
||||
|
||||
{% block kubernetes_pod_main_container %}
|
||||
container {
|
||||
name = "dev"
|
||||
|
||||
Reference in New Issue
Block a user