Skip to content

Commit

Permalink
update flist to ubuntu and add disk
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Harby committed Jul 10, 2023
1 parent 85957a4 commit 1ccbc44
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions examples/resources/gpu/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,24 @@ resource "grid_deployment" "d1" {
name = local.name
node = 93
network_name = grid_network.net1.name
disks {
name = "data"
size = 100
description = "volume holding app data"
}
vms {
name = "vm1"
flist = "https://hub.grid.tf/tf-official-apps/base:latest.flist"
cpu = 2
memory = 1024
entrypoint = "/sbin/zinit init"
flist = "https://hub.grid.tf/tf-official-vms/ubuntu-22.04.flist"
cpu = 4
memory = 1024 * 4
entrypoint = "/init.sh"
env_vars = {
SSH_KEY = file("~/.ssh/id_rsa.pub")
}
mounts {
disk_name = "data"
mount_point = "/app"
}
planetary = true
gpus = [
"0000:0e:00.0/1002/744c" //choose the correct gpu id available on the node your are deploying on
Expand Down

0 comments on commit 1ccbc44

Please sign in to comment.