diff --git a/kube.tf b/kube.tf index 9cd619e..b42f59d 100644 --- a/kube.tf +++ b/kube.tf @@ -37,15 +37,19 @@ resource "openstack_compute_instance_v2" "kube" { network { port = resource.openstack_networking_port_v2.kubeport[count.index].id } + block_device { uuid = resource.openstack_blockstorage_volume_v3.kubevolumeboot[count.index].id source_type = "volume" destination_type = "volume" + boot_index = 0 } + block_device { uuid = resource.openstack_blockstorage_volume_v3.kubevolumesnap[count.index].id source_type = "volume" destination_type = "volume" + boot_index = -1 } }