Skip to content
Snippets Groups Projects
Commit 8493ff38 authored by František Dvořák's avatar František Dvořák
Browse files

Use non-ephemeral volume on master node @ PSNC production

parent 113d19ed
No related branches found
No related tags found
No related merge requests found
......@@ -32,11 +32,18 @@ data "openstack_compute_flavor_v2" "gpu-flavor" {
resource "openstack_compute_instance_v2" "master" {
name = "k8s-${var.site_name}-master"
image_id = data.openstack_images_image_v2.ubuntu.id
flavor_id = data.openstack_compute_flavor_v2.master-flavor.id
security_groups = ["default", openstack_networking_secgroup_v2.ping.name, openstack_networking_secgroup_v2.ssh.name]
user_data = file("cloud-init.yaml")
tags = ["master"]
block_device {
delete_on_termination = true
destination_type = "volume"
source_type = "image"
volume_size = 50
volume_type = "Ceph_Frappuccino_NVME_Platinum"
uuid = data.openstack_images_image_v2.ubuntu.id
}
network {
uuid = openstack_networking_network_v2.local-network.id
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment