Skip to content

Commit

Permalink
fix: ReadWriteMany for vols on AWS (#29)
Browse files Browse the repository at this point in the history
* fix: ReadWriteMany for vols on AWS

* feat: needed for Zambia AWS staging and prod deploy (#30)

* feat: needed for Zambia AWS staging and prod deploy

* fix: use ternary for ckan-resources access mode

---------

Co-authored-by: Chas Nelson <[email protected]>
  • Loading branch information
cooper667 and ChasNelson1990 authored Aug 30, 2024
1 parent a200840 commit ac8c5be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions roles/ckan/templates/kubernetes/ckan_volumes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ spec:
storageClassName: "{{ storage_class_name }}"
{% endif %}
accessModes:
- "{{ (fjelltopp_cloud_provider == 'azure') | ternary('ReadWriteMany', 'ReadWriteOnce') }}" # Azure supports ReadWriteMany and it's required for rolling deployments
- ReadWriteMany
resources:
requests:
storage: "{{ (fjelltopp_cloud_provider == 'azure') | ternary('1Gi', '100Mi') }}"
storage: 1Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
Expand All @@ -43,10 +43,10 @@ spec:
storageClassName: "{{ storage_class_name }}"
{% endif %}
accessModes:
- "{{ (fjelltopp_cloud_provider == 'azure') | ternary('ReadWriteMany', 'ReadWriteOnce') }}"
- ReadWriteMany
resources:
requests:
storage: "{{ (fjelltopp_cloud_provider == 'azure') | ternary('1Gi', '100Mi') }}"
storage: 1Gi

---
apiVersion: v1
Expand Down Expand Up @@ -82,7 +82,7 @@ spec:
name: localckan
namespace: {{ application_namespace }}
accessModes:
- ReadWriteOnce
- ReadWriteMany
capacity:
storage: 20Gi
hostPath:
Expand Down

0 comments on commit ac8c5be

Please sign in to comment.