diff --git a/kube.tf b/kube.tf index 0fbe066..0171fe4 100644 --- a/kube.tf +++ b/kube.tf @@ -9,3 +9,11 @@ resource "openstack_networking_port_v2" "kubeport" { admin_state_up = "true" } +resource "openstack_blockstorage_volume_v3" "kubevolume" { + count = var.kubesize # size of cluster + name = "kube${count.index}-matrix-test-sunet-se-vol" + description = "OS volume for kubernetes node ${count.index}" + size = 30 + image_id = data.openstack_images_image_v2.ubuntu2204image.id + enable_online_resize = true # Allow us to resize volume while attached. +}