From 6eacd192729d8ad403441ddb1be374d4aafb9a75 Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Thu, 12 Sep 2024 15:29:32 +0200 Subject: [PATCH] Add credential secret as volume --- ente-photos/ente-deployment.yaml | 13 ++++++------- ente-photos/ente-photos-es.yaml | 2 +- .../museum-claim2-persistentvolumeclaim.yaml | 12 ------------ 3 files changed, 7 insertions(+), 20 deletions(-) delete mode 100644 ente-photos/museum-claim2-persistentvolumeclaim.yaml diff --git a/ente-photos/ente-deployment.yaml b/ente-photos/ente-deployment.yaml index 2fe7663..017902c 100644 --- a/ente-photos/ente-deployment.yaml +++ b/ente-photos/ente-deployment.yaml @@ -37,9 +37,6 @@ spec: - mountPath: /museum.yaml name: museum-claim1 readOnly: true - - mountPath: /credentials.yaml - name: museum-claim2 - readOnly: true - mountPath: /data name: museum-claim3 readOnly: true @@ -50,6 +47,12 @@ spec: # name: socat restartPolicy: Always volumes: + - name: credentials + secret: + secretName: ente-photos-config + items: + - key: credentials.yaml + path: / - name: custom-logs persistentVolumeClaim: claimName: custom-logs @@ -57,10 +60,6 @@ spec: persistentVolumeClaim: claimName: museum-claim1 readOnly: true - - name: museum-claim2 - persistentVolumeClaim: - claimName: museum-claim2 - readOnly: true - name: museum-claim3 persistentVolumeClaim: claimName: museum-claim3 diff --git a/ente-photos/ente-photos-es.yaml b/ente-photos/ente-photos-es.yaml index 3b1c843..08dc584 100644 --- a/ente-photos/ente-photos-es.yaml +++ b/ente-photos/ente-photos-es.yaml @@ -12,7 +12,7 @@ spec: template: engineVersion: v2 data: - config: | + credentials.yaml: | db: host: helm-postgresql port: 5432 diff --git a/ente-photos/museum-claim2-persistentvolumeclaim.yaml b/ente-photos/museum-claim2-persistentvolumeclaim.yaml deleted file mode 100644 index 4013dc1..0000000 --- a/ente-photos/museum-claim2-persistentvolumeclaim.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - labels: - io.kompose.service: museum-claim2 - name: museum-claim2 -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 100Mi