From 4373ed44865fb38a4e6a7867588938baa0941bc2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Henning?= <soeren.henning@email.uni-kiel.de>
Date: Mon, 11 Jan 2021 17:33:04 +0100
Subject: [PATCH] Add volume claim for OCI plus access pod

---
 .../kubernetes/volume-oci-access.yaml         | 20 +++++++++++++++++++
 .../infrastructure/kubernetes/volume-oci.yaml | 11 ++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 execution/infrastructure/kubernetes/volume-oci-access.yaml
 create mode 100644 execution/infrastructure/kubernetes/volume-oci.yaml

diff --git a/execution/infrastructure/kubernetes/volume-oci-access.yaml b/execution/infrastructure/kubernetes/volume-oci-access.yaml
new file mode 100644
index 000000000..7c129600f
--- /dev/null
+++ b/execution/infrastructure/kubernetes/volume-oci-access.yaml
@@ -0,0 +1,20 @@
+apiVersion: v1
+kind: Pod
+metadata:
+  name: theodolite-results-access
+spec:
+  restartPolicy: Always
+  containers:
+  - name: theodolite-results-access
+    image: busybox:latest
+    command:
+    - sh
+    - -c
+    - exec tail -f /dev/null
+    volumeMounts:
+    - mountPath: /app/results
+      name: theodolite-pv-storage
+  volumes:
+    - name: theodolite-pv-storage
+      persistentVolumeClaim:
+        claimName: theodolite-pv-claim
diff --git a/execution/infrastructure/kubernetes/volume-oci.yaml b/execution/infrastructure/kubernetes/volume-oci.yaml
new file mode 100644
index 000000000..39d267011
--- /dev/null
+++ b/execution/infrastructure/kubernetes/volume-oci.yaml
@@ -0,0 +1,11 @@
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  name: theodolite-pv-claim
+spec:
+  storageClassName: "oci-bv"
+  accessModes:
+    - ReadWriteOnce
+  resources:
+    requests:
+      storage: 50Gi
-- 
GitLab