Skip to content

Commit 6f4d7bb

Browse files
feat(lighthouse): archive blobs by default (#475)
1 parent c7d55b7 commit 6f4d7bb

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

charts/lighthouse/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.5.12
18+
version: 0.6.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/lighthouse/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Deploy and scale [Lighthouse](https://github.com/sigp/lighthouse) inside Kubernetes with ease
44

5-
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![Version: 0.5.12](https://img.shields.io/badge/Version-0.5.12-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v6.0.1](https://img.shields.io/badge/AppVersion-v6.0.1-informational?style=flat-square)
5+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![Version: 0.6.0](https://img.shields.io/badge/Version-0.6.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v6.0.1](https://img.shields.io/badge/AppVersion-v6.0.1-informational?style=flat-square)
66

77
## Chart Features
88

@@ -104,6 +104,7 @@ We do not recommend that you upgrade the application by overriding `image.tag`.
104104
| lighthouse.p2pHostPort.port | First port of the 2-port range to be used. The ports must be unique | int | `31000` |
105105
| lighthouse.podAnnotations | Annotations for the `Pod` | object | `{}` |
106106
| lighthouse.podSecurityContext | Pod-wide security context | object | `{"fsGroup":101337,"runAsGroup":101337,"runAsNonRoot":true,"runAsUser":101337}` |
107+
| lighthouse.pruneBlobs | Prune blobs? leave false for an archive node that retains hisotrical blobs | bool | `false` |
107108
| lighthouse.resources | | object | `{}` |
108109
| lighthouse.service.ports.http-lighthouse | Service Port to expose REST http interface on | int | `5052` |
109110
| lighthouse.service.ports.http-metrics | Service Port to expose Prometheus metrics on | int | `5054` |
@@ -114,8 +115,8 @@ We do not recommend that you upgrade the application by overriding `image.tag`.
114115
| lighthouse.service.type | | string | `"ClusterIP"` |
115116
| lighthouse.terminationGracePeriodSeconds | Amount of time to wait before force-killing the container | int | `60` |
116117
| lighthouse.tolerations | | list | `[]` |
117-
| lighthouse.volumeClaimSpec | [PersistentVolumeClaimSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#persistentvolumeclaimspec-v1-core) for storage | object | `{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"300Gi"}},"storageClassName":null}` |
118-
| lighthouse.volumeClaimSpec.resources.requests.storage | The amount of disk space to provision | string | `"300Gi"` |
118+
| lighthouse.volumeClaimSpec | [PersistentVolumeClaimSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#persistentvolumeclaimspec-v1-core) for storage | object | `{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"3Ti"}},"storageClassName":null}` |
119+
| lighthouse.volumeClaimSpec.resources.requests.storage | The amount of disk space to provision | string | `"3Ti"` |
119120
| lighthouse.volumeClaimSpec.storageClassName | The storage class to use when provisioning a persistent volume | string | `nil` |
120121
| nameOverride | | string | `""` |
121122
| prometheus.serviceMonitors.enabled | Enable monitoring by creating `ServiceMonitor` CRDs ([prometheus-operator](https://github.com/prometheus-operator/prometheus-operator)) | bool | `false` |

charts/lighthouse/templates/lighthouse/statefulset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ spec:
149149
set -ex;
150150
exec lighthouse beacon_node \
151151
--datadir=/storage \
152+
--prune-blobs={{ $values.pruneBlobs }} \
152153
{{- if $values.executionClientUrl }}
153154
--execution-endpoint={{ $values.executionClientUrl }} \
154155
{{- end }}

charts/lighthouse/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ grafana:
7070
lighthouse:
7171
# -- URL to the Execution Client Engine API. Will use configured JWT to authenticate.
7272
executionClientUrl: "" # e.g. http://erigon:8551
73+
# -- Prune blobs? leave false for an archive node that retains hisotrical blobs
74+
pruneBlobs: false
7375
# -- JWT to use to authenticate with Execution Client. Specify either `existingSecret` OR `fromLiteral`.
7476
jwt:
7577
# -- Load the JWT from an existing Kubernetes Secret. Takes precedence over `fromLiteral` if set.
@@ -95,7 +97,7 @@ lighthouse:
9597
resources:
9698
requests:
9799
# -- The amount of disk space to provision
98-
storage: 300Gi
100+
storage: 3Ti
99101

100102
# Increasing the grace termination period prevents Kubernetes
101103
# from killing the node process prematurely. Premature shutdown

0 commit comments

Comments
 (0)