Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions helm-chart/eoapi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
version numbers below correspond to helm chart `appVersion`: see `./helm-chart/eoapi/Chart.yaml`
---
### 0.3.5 (2024-07-09)

* tweaks for getting NFS working with a static NFS EFS mount

### 0.3.4 (2024-07-05)

* add back in a hidden non-pgo option for EOEPCA+
Expand Down
4 changes: 2 additions & 2 deletions helm-chart/eoapi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ kubeVersion: ">=1.23.0-0"
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: "0.3.2"
version: "0.3.3"

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.3.4"
appVersion: "0.3.5"

dependencies:
- name: postgrescluster
Expand Down
4 changes: 3 additions & 1 deletion helm-chart/eoapi/templates/db/pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.db.enabled }}
---
apiVersion: v1
kind: PersistentVolumeClaim
Expand All @@ -11,4 +12,5 @@ spec:
{{- end }}
resources:
requests:
storage: {{ .Values.db.settings.resources.requests.storage }}
storage: {{ .Values.db.settings.resources.requests.storage }}
{{- end }}
19 changes: 19 additions & 0 deletions helm-chart/eoapi/templates/pv-static-efs-rwmany.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#https://github.com/kubernetes-sigs/aws-efs-csi-driver/blob/master/examples/kubernetes/static_provisioning/README.md
{{- if and (.Values.postgresclusterNFSStaticPV.enabled) (.Values.postgrescluster.enabled) }}
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: efs-pv
spec:
capacity:
storage: 300Mi
volumeMode: Filesystem
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
storageClassName: {{ .Values.postgresclusterNFSStaticPV.storageClassName }}
csi:
driver: efs.csi.aws.com
volumeHandle: {{ .Values.postgresclusterNFSStaticPV.volumeHandle }}
{{- end }}
13 changes: 12 additions & 1 deletion helm-chart/eoapi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,17 @@ db:
PGPASSWORD: ""
PGDATABASE: "postgis"

# on AWS we use the EBS and EFS CSI drivers that dynamically create
# and mount storage on request via PVC(s) but for NFS
# the EFS CSI driver by default creates mounts with access points
# that restrict read/write permissions to the uid:gid of the mount.
# in simple cases we don't want to have to think about this extra layer for NFS
# and this is a workaround to mount a static NFS without access points.
# NOTE: GCP and other IaC haven't been set up to use NFS yet
postgresclusterNFSStaticPV:
enabled: false
storageClassName: ""
volumeHandle: ""

# this is declared as a dependency of eoapi in helm-chart/eoapi/Chart.yaml
postgrescluster:
Expand All @@ -106,7 +117,7 @@ postgrescluster:
postGISVersion: 3.4
pgBouncerReplicas: 1
monitoring: false
backupsSize: 20Gi

instances:
- name: eoapi
replicas: 1
Expand Down