From 32afc32ebbd70705e9b9f256a50679e8594955e3 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Thu, 14 Nov 2024 11:01:20 +0100 Subject: [PATCH] Generate config for portal --- portal/base/portal-deployment.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/portal/base/portal-deployment.yml b/portal/base/portal-deployment.yml index 54651b9..2eaa6fb 100644 --- a/portal/base/portal-deployment.yml +++ b/portal/base/portal-deployment.yml @@ -17,11 +17,36 @@ spec: creationTimestamp: labels: app: portal-node + volumeClaimTemplates: + - metadata: + name: init-config + spec: + storageClassName: csi-sc-cinderplugin + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi spec: containers: - name: portal - image: docker.sunet.se/drive/portal:0.1.0-2 + image: docker.sunet.se/drive/portal:0.1.0-3 imagePullPolicy: Always + volumeMounts: + - name: config-volume + mountPath: /config + subPath: config resources: {} + initContainers: + - image: docker.sunet.se/drive/portal:0.1.0-3 + name: init-config + volumeMounts: + - name: config-volume + mountPath: /config + subPath: config + env: + - name: DRIVE_DOMAIN + value: "https://drive.test.sunet.se" + command: ["/bin/bash", "-c", "/app/metadata.py > /config/config.yaml"] strategy: {} status: {}