From 587555312c4e684b68e153e038d65aef274214a0 Mon Sep 17 00:00:00 2001
From: Athanasios Karmas <karmas@athenarc.gr>
Date: Fri, 19 Nov 2021 18:19:30 +0100
Subject: [PATCH] added capability to OpenShift job to select the worker node
 to run on

---
 create_job.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/create_job.sh b/create_job.sh
index 96172bc3..24a50431 100644
--- a/create_job.sh
+++ b/create_job.sh
@@ -36,5 +36,7 @@ spec:
         - name: sharedbin
           persistentVolumeClaim:
             claimName: shared-binaries
-      restartPolicy: Never    
+      restartPolicy: Never
+      nodeSelector:
+       kubernetes.io/hostname: okd-worker-2.dev.hbp.eu     
 EOT
-- 
GitLab