Skip to content

Commit

Permalink
feat: add http service (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDones authored Dec 3, 2024
1 parent faded69 commit 5338504
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/aztec-validator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name: aztec-validator
description: A Helm chart for deploying an Aztec validator
type: application
home: https://docs.aztec.network/
version: 0.0.1
version: 0.0.2
maintainers:
- name: 0xDones
5 changes: 3 additions & 2 deletions charts/aztec-validator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# aztec-validator

![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.0.2](https://img.shields.io/badge/Version-0.0.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

A Helm chart for deploying an Aztec validator

Expand Down Expand Up @@ -30,7 +30,7 @@ helm install aztec-validator nethermind/aztec-validator
| args[3] | string | `"--sequencer"` | |
| config.AZTEC_EPOCH_DURATION | string | `"32"` | |
| config.AZTEC_EPOCH_PROOF_CLAIM_WINDOW_IN_L2_SLOTS | string | `"13"` | |
| config.AZTEC_PORT | string | `"40400"` | |
| config.AZTEC_PORT | string | `"8080"` | |
| config.AZTEC_SLOT_DURATION | string | `"36"` | |
| config.BOOTSTRAP_NODES | string | `"enr:-Jq4QO_3szmgtG2cbEdnFDIhpGAQkc1HwfNy4-M6sG9QmQbPTmp9PMOHR3xslfR23hORiU-GpA7uM9uXw49lFcnuuvYGjWF6dGVjX25ldHdvcmsBgmlkgnY0gmlwhCIwTIOJc2VjcDI1NmsxoQKQTN17XKCwjYSSwmTc-6YzCMhd3v6Ofl8TS-WunX6LCoN0Y3CCndCDdWRwgp3Q"` | |
| config.COINBASE | string | `"0xbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"` | |
Expand Down Expand Up @@ -107,6 +107,7 @@ helm install aztec-validator nethermind/aztec-validator
| securityContext.runAsNonRoot | bool | `true` | |
| securityContext.runAsUser | int | `1000` | |
| securityContext.seccompProfile.type | string | `"RuntimeDefault"` | |
| service.ports.http | int | `8080` | |
| service.ports.p2p | int | `40400` | |
| service.type | string | `"NodePort"` | |
| serviceAccount.annotations | object | `{}` | |
Expand Down
16 changes: 16 additions & 0 deletions charts/aztec-validator/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "aztec-validator.fullname" . }}
labels:
{{- include "aztec-validator.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.ports.http }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "aztec-validator.selectorLabels" . | nindent 4 }}
3 changes: 3 additions & 0 deletions charts/aztec-validator/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ spec:
echo "P2P Data: ${P2P_TCP_ANNOUNCE_ADDR}";
exec node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js {{ join " " .Values.args }}
ports:
- name: http
containerPort: {{ .Values.service.ports.http }}
protocol: TCP
- name: p2p-tcp
containerPort: {{ .Values.service.ports.p2p }}
protocol: TCP
Expand Down
3 changes: 2 additions & 1 deletion charts/aztec-validator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ config:
VALIDATOR_DISABLED: "false"
DEBUG: "aztec:*,-aztec:avm_simulator*,-aztec:circuits:artifact_hash,-aztec:libp2p_service,-json-rpc*,-aztec:world-state:database,-aztec:l2_block_stream*"
LOG_LEVEL: debug
AZTEC_PORT: "40400"
AZTEC_PORT: "8080"
P2P_ENABLED: "true"
L1_CHAIN_ID: "1337"
PROVER_REAL_PROOFS: "true"
Expand Down Expand Up @@ -91,6 +91,7 @@ service:
type: NodePort
ports:
p2p: 40400
http: 8080

ingress:
enabled: false
Expand Down

0 comments on commit 5338504

Please sign in to comment.