From 489686812650f7f273d999fb261b2fd86eb41eb6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz>
Date: Fri, 17 Jan 2025 11:01:53 +0000
Subject: [PATCH] Add GPU node at PSNC production1

---
 eosc-production1/inventory/1-psnc.yaml      | 1 +
 eosc-production1/terraform/terraform.tfvars | 5 ++---
 eosc-production1/terraform/vms.tf           | 1 +
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/eosc-production1/inventory/1-psnc.yaml b/eosc-production1/inventory/1-psnc.yaml
index 110d1e4..fd2455b 100644
--- a/eosc-production1/inventory/1-psnc.yaml
+++ b/eosc-production1/inventory/1-psnc.yaml
@@ -25,6 +25,7 @@ worker:
 
 gpu:
   hosts:
+    192.168.0.108:
 
 # using public IP of kube_server for ansible delegate_to
 kube_server:
diff --git a/eosc-production1/terraform/terraform.tfvars b/eosc-production1/terraform/terraform.tfvars
index 433e788..56956e3 100644
--- a/eosc-production1/terraform/terraform.tfvars
+++ b/eosc-production1/terraform/terraform.tfvars
@@ -7,14 +7,13 @@ site_name = "production1"
 # These may need some adjustment for your provider
 master_flavor_name = "M1-NET-2vCPU-8R"
 worker_flavor_name = "M1-NVME-32vCPU-128R-300D"
-# XXX: replace for the GPU flavor
-gpu_flavor_name = "M1-NVME-32vCPU-128R-300D"
+gpu_flavor_name = "G1-NVME-8vCPU-32R-1400D-1GPU"
 
 # Number of extra workers
 extra_workers = 3
 
 # Number of GPU workers
-gpu_workers = 0
+gpu_workers = 1
 
 # volumes for docker
 docker_volumes_size = 384
diff --git a/eosc-production1/terraform/vms.tf b/eosc-production1/terraform/vms.tf
index 95b974d..f8185f1 100644
--- a/eosc-production1/terraform/vms.tf
+++ b/eosc-production1/terraform/vms.tf
@@ -97,6 +97,7 @@ resource "openstack_compute_instance_v2" "gpu" {
   network {
     uuid = openstack_networking_network_v2.local-network.id
   }
+  availability_zone_hints = "BST1-Proxima"
 }
 
 resource "openstack_compute_floatingip_associate_v2" "fip" {
-- 
GitLab