fix: Add persistent storage for aztec nodes in the spartan cluster #8923
+161
−21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR includes two changes:
Persistent Storage
Nodes that were previously configured with mounted volumes are now configured to use
volumeClaimTemplates
. Rather than directly configuring aPersistentVolumeClaim
, avolumeClaimTemplate
will automatically append index suffixes when replicas increase, so that there is not a storage conflict.Persistent Storage for Grafana
The currently bundles Grafana instance uses a standard
PersistentVolumeClaim
since it is not expected to be deployed with replicas. Grafana also has an OS-level user defined it its container, which assumes ownership of the volume once it is mounted. To allow remounting, the user have to be defined in the helm chart. This is done using asecurityContext
in Grafana yaml template.Repaired Load Balancer Config
PR #8786 previously made network interfaces either internal or external. This meant that when the network was set as public, certain references to internal network interfaces were no longer reachable. Specifically items that address a node port (bootNodeURL for example).
This PR adds the load balancer as a second interface, without modifying the original.
Testing
Code in this PR has been tested by by deployed the updated helm configurations to the Spartan cluster using command:
helm upgrade --install staging . -n staging --set network.public=true
As part of this change, replica counts have also validated to work without causing conflict for volume mounts, network interfaces or other resources.