Skip to content

Commit c390269

Browse files
authored
Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Rever…" (#111)
This reverts commit 1d76797.
1 parent f521458 commit c390269

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#https://github.com/kubernetes-sigs/aws-efs-csi-driver/blob/master/examples/kubernetes/static_provisioning/README.md
2+
{{- if and (.Values.postgresclusterNFSStaticPV.enabled) (.Values.postgrescluster.enabled) }}
3+
---
4+
apiVersion: v1
5+
kind: PersistentVolume
6+
metadata:
7+
name: efs-pv
8+
spec:
9+
capacity:
10+
storage: 300Mi
11+
volumeMode: Filesystem
12+
accessModes:
13+
- ReadWriteMany
14+
persistentVolumeReclaimPolicy: Retain
15+
storageClassName: {{ .Values.postgresclusterNFSStaticPV.storageClassName }}
16+
csi:
17+
driver: efs.csi.aws.com
18+
volumeHandle: {{ .Values.postgresclusterNFSStaticPV.volumeHandle }}
19+
{{- end }}

helm-chart/eoapi/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,18 @@ db:
9898
PGPASSWORD: ""
9999
PGDATABASE: "postgis"
100100

101+
# on AWS we use the EBS and EFS CSI drivers that dynamically create
102+
# and mount storage on request via PVC(s) but for NFS
103+
# the EFS CSI driver by default creates mounts with access points
104+
# that restrict read/write permissions to the uid:gid of the mount.
105+
# in simple cases we don't want to have to think about this extra layer for NFS
106+
# and this is a workaround to mount a static NFS without access points.
107+
# NOTE: GCP and other IaC haven't been set up to use NFS yet
108+
postgresclusterNFSStaticPV:
109+
enabled: false
110+
storageClassName: ""
111+
volumeHandle: ""
112+
101113
# this is declared as a dependency of eoapi in helm-chart/eoapi/Chart.yaml
102114
postgrescluster:
103115
enabled: true

0 commit comments

Comments
 (0)