Skip to content

Commit

Permalink
Merge pull request #402 from celo-org/jcortejoso/eigenda
Browse files Browse the repository at this point in the history
Included option to use smaller KZG files
  • Loading branch information
jcortejoso authored Oct 4, 2024
2 parents 71272b0 + 4deef5a commit 8ecf694
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/eigenda-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: eigenda-proxy
apiVersion: v2
version: 0.3.0
version: 0.3.1
description: Helm chart deploying Layr-Labs eigenda-proxy
home: https://clabs.co
sources:
Expand Down
4 changes: 3 additions & 1 deletion charts/eigenda-proxy/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# eigenda-proxy

![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.0.0](https://img.shields.io/badge/AppVersion-v1.0.0-informational?style=flat-square)
![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.0.0](https://img.shields.io/badge/AppVersion-v1.0.0-informational?style=flat-square)

Helm chart deploying Layr-Labs eigenda-proxy

Expand Down Expand Up @@ -33,10 +33,12 @@ Helm chart deploying Layr-Labs eigenda-proxy
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| config.bigKZGFiles | bool | `false` | |
| config.disperser.rpc | string | `"disperser-holesky.eigenda.xyz:443"` | |
| config.eth.confirmationDepth | int | `1` | |
| config.eth.rpc | string | `"https://ethereum-holesky-rpc.publicnode.com"` | |
| config.eth.serviceManagerAddr | string | `"0xD4A7E1Bd8015057293f0D0A557088c286942e84b"` | |
| config.maxBlobLength | string | `"32MiB"` | |
| config.privateKey.value | string | `""` | |
| config.routing.cacheTargets | string | `""` | |
| config.s3.accessKeyId | string | `""` | |
Expand Down
12 changes: 10 additions & 2 deletions charts/eigenda-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ spec:
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.config.bigKZGFiles }}
initContainers:
- name: download-srs
image: alpine:latest
Expand Down Expand Up @@ -82,6 +83,7 @@ spec:
volumeMounts:
- name: data
mountPath: /data
{{- end }}
containers:
- name: eigenda-proxy
securityContext:
Expand All @@ -94,6 +96,7 @@ spec:
args:
- |
mkdir -p /data/resources
kzg_folder={{ ternary "/data/resources" "/app/resources" .Values.config.bigKZGFiles }}
exec /app/eigenda-proxy \
--addr=0.0.0.0 \
--port={{ .Values.services.api.port }} \
Expand All @@ -102,8 +105,9 @@ spec:
--eigenda.eth-rpc={{ .Values.config.eth.rpc }} \
--eigenda.svc-manager-addr={{ .Values.config.eth.serviceManagerAddr }} \
--eigenda.status-query-timeout=45m \
--eigenda.g1-path=/data/resources/g1.point \
--eigenda.g2-tau-path=/data/resources/g2.point.powerOf2 \
--eigenda.g1-path=$kzg_folder/g1.point \
--eigenda.g2-tau-path=$kzg_folder/g2.point.powerOf2 \
--eigenda.max-blob-length={{ .Values.config.maxBlobLength }} \
--eigenda.disable-tls=false \
{{- if .Values.config.routing.cacheTargets }}
--routing.cache-targets={{ .Values.config.routing.cacheTargets }} \
Expand Down Expand Up @@ -171,9 +175,11 @@ spec:
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.config.bigKZGFiles }}
volumeMounts:
- name: data
mountPath: /data
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -188,6 +194,7 @@ spec:
{{- end }}
updateStrategy:
type: Recreate
{{- if .Values.config.bigKZGFiles }}
volumes:
- name: data
{{- if .Values.persistence.enabled }}
Expand All @@ -196,3 +203,4 @@ spec:
{{ else }}
emptyDir: {}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/eigenda-proxy/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.persistence.enabled }}
{{- if and .Values.persistence.enabled .Values.config.bigKZGFiles }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand Down
2 changes: 2 additions & 0 deletions charts/eigenda-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ config:
accessKeyId: ""
accessKeySecret: ""
path: ""
bigKZGFiles: false
maxBlobLength: 32MiB

log:
level: info
Expand Down

0 comments on commit 8ecf694

Please sign in to comment.