Create OS volumes to be used by kubernetes nodes

This commit is contained in:
Magnus Andersson 2024-01-11 15:58:43 +01:00
parent d07a308cdc
commit 28ecb1ba57
Signed by: mandersson
GPG key ID: 19CB2C58E1F19B16

View file

@ -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.
}