moving project to gitea
This commit is contained in:
15
terraform/storage.tf
Normal file
15
terraform/storage.tf
Normal file
@@ -0,0 +1,15 @@
|
||||
# Create 100GB volumes for each worker node
|
||||
resource "openstack_blockstorage_volume_v3" "worker_volume" {
|
||||
count = 3
|
||||
name = "ikt210-g04-worker-${count.index}-volume-0"
|
||||
size = 100
|
||||
description = "100GB volume for worker node ${count.index}"
|
||||
}
|
||||
|
||||
# Attach each volume to its corresponding worker node
|
||||
resource "openstack_compute_volume_attach_v2" "worker_volume_attach" {
|
||||
count = 3
|
||||
instance_id = openstack_compute_instance_v2.worker[count.index].id
|
||||
volume_id = openstack_blockstorage_volume_v3.worker_volume[count.index].id
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user