Skip to content

Commit

Permalink
fix: create volume dynamically in x domain kind cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
lfleischmann authored Sep 28, 2023
1 parent c54c970 commit 60d6f24
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions deploy/k8s/base/postgres/persistent-volume.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -28,4 +14,4 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 100M
storage: 100M

0 comments on commit 60d6f24

Please sign in to comment.