Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue #187: Make AWS storage provisioning configurable via values.yaml file #190

Merged
merged 2 commits into from
Apr 14, 2023
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
6 changes: 3 additions & 3 deletions helm/charts/besu-node/templates/node-storage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ kind: StorageClass
metadata:
name: {{ include "besu-node.fullname" . }}-storage
namespace: {{ .Release.Namespace }}
provisioner: kubernetes.io/aws-ebs
provisioner: {{ .Values.storage.aws.provisioner }}
reclaimPolicy: {{ .Values.cluster.reclaimPolicy }}
allowVolumeExpansion: true
parameters:
type: gp3
fsType: ext4
type: {{ .Values.storage.aws.parameters.type }}
fsType: {{ .Values.storage.aws.parameters.fsType }}

# ---
# apiVersion: storage.k8s.io/v1
Expand Down
7 changes: 6 additions & 1 deletion helm/charts/besu-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ storage:
pvcSizeLimit: "20Gi"
# NOTE: when you set this to Retain, the volume WILL persist after the chart is delete and you need to manually delete it
reclaimPolicy: "Delete" # choose from: Delete | Retain
aws:
provisioner: kubernetes.io/aws-ebs
parameters:
type: gp3
fsType: ext4

# fixes permissions of volumes becuase besu runs as user `besu` and volumes prefer `root`
volumePermissionsFix:
Expand All @@ -57,7 +62,7 @@ node:
logging: INFO
account:
password: 'password'
passwordPath: "/keys/accountPassword"
passwordPath: "/keys/accountPassword"
p2p:
enabled: true
host: "0.0.0.0"
Expand Down
6 changes: 3 additions & 3 deletions helm/charts/goquorum-node/templates/node-storage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ kind: StorageClass
metadata:
name: {{ include "goquorum-node.fullname" . }}-storage
namespace: {{ .Release.Namespace }}
provisioner: kubernetes.io/aws-ebs
provisioner: {{ .Values.storage.aws.provisioner }}
reclaimPolicy: "{{.Values.storage.reclaimPolicy }}"
allowVolumeExpansion: true
parameters:
type: gp3
fsType: ext4
type: {{ .Values.storage.aws.parameters.type }}
fsType: {{ .Values.storage.aws.parameters.fsType }}

# ---
# apiVersion: storage.k8s.io/v1
Expand Down
5 changes: 5 additions & 0 deletions helm/charts/goquorum-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ storage:
pvcSizeLimit: "20Gi"
# NOTE: when you set this to Retain, the volume WILL persist after the chart is delete and you need to manually delete it
reclaimPolicy: "Delete" # choose from: Delete | Retain
aws:
provisioner: kubernetes.io/aws-ebs
parameters:
type: gp3
fsType: ext4

node:
goquorum:
Expand Down