Create OS volumes to be used by kubernetes nodes
This commit is contained in:
parent
d07a308cdc
commit
28ecb1ba57
8
kube.tf
8
kube.tf
|
@ -9,3 +9,11 @@ resource "openstack_networking_port_v2" "kubeport" {
|
||||||
admin_state_up = "true"
|
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.
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue