mount models for gpu workspaces
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
2880610566
commit
09c33602aa
22
base.tf.j2
22
base.tf.j2
@ -481,6 +481,16 @@ resource "kubernetes_deployment" "main" {
|
|||||||
read_only = false
|
read_only = false
|
||||||
}
|
}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
dynamic "volume_mount" {
|
||||||
|
for_each = data.coder_parameter.gpu.value == "0" ? [] : [1]
|
||||||
|
|
||||||
|
content {
|
||||||
|
mount_path = "/models"
|
||||||
|
name = "models"
|
||||||
|
read_only = false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
@ -524,6 +534,18 @@ resource "kubernetes_deployment" "main" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
dynamic "volume" {
|
||||||
|
for_each = data.coder_parameter.gpu.value == "0" ? [] : [1]
|
||||||
|
|
||||||
|
content {
|
||||||
|
name = "models"
|
||||||
|
hostPath {
|
||||||
|
path = "/ai/models"
|
||||||
|
type = "Directory"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user