From 60d6f2488d08e234de12a1bdbb1b3b42a8aaa990 Mon Sep 17 00:00:00 2001 From: lfleischmann <67686424+lfleischmann@users.noreply.github.com> Date: Thu, 28 Sep 2023 15:51:51 +0200 Subject: [PATCH] fix: create volume dynamically in x domain kind cluster --- .../k8s/base/postgres/persistent-volume.yaml | 20 +++---------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/deploy/k8s/base/postgres/persistent-volume.yaml b/deploy/k8s/base/postgres/persistent-volume.yaml index 9032e351c..73c0d759f 100644 --- a/deploy/k8s/base/postgres/persistent-volume.yaml +++ b/deploy/k8s/base/postgres/persistent-volume.yaml @@ -1,19 +1,5 @@ ---- -kind: PersistentVolume -apiVersion: v1 -metadata: - name: postgres-pv - namespace: hanko - labels: - type: local -spec: - storageClassName: standard - capacity: - storage: 100M - accessModes: - - ReadWriteOnce - hostPath: - path: "/mnt/data" +# Persistence Volume definition removed because it somehow made problems with the postgres container. +# Volume now gets created dynamically (based on the claim). --- apiVersion: v1 kind: PersistentVolumeClaim @@ -28,4 +14,4 @@ spec: - ReadWriteOnce resources: requests: - storage: 100M \ No newline at end of file + storage: 100M