Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

feat: updates for dusk 2 #128

Merged
merged 30 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2c29c95
Enable sequencer relayer to take a passed in token
joroshiba Nov 17, 2023
4918771
Updates to relayer startup
joroshiba Nov 17, 2023
0697453
test
joroshiba Nov 17, 2023
773ed64
dependency update
joroshiba Nov 17, 2023
068d2d5
cleanup
joroshiba Nov 17, 2023
e103ede
use cheaper relayer
joroshiba Nov 18, 2023
736e546
dependency update
joroshiba Nov 18, 2023
b2d7715
remove config option
joroshiba Nov 18, 2023
95bc8bf
chart update
joroshiba Nov 18, 2023
9900fa7
test new releases
joroshiba Nov 18, 2023
e487ff1
conductor updates
joroshiba Nov 18, 2023
83e2960
configure rest of conductor optimism fields
joroshiba Nov 18, 2023
953122d
test
joroshiba Nov 18, 2023
dc5edaa
use new images
joroshiba Nov 18, 2023
a3e6196
update dependency
joroshiba Nov 18, 2023
af3a706
fix volume namespace
joroshiba Nov 18, 2023
d0fd01a
key should be kebab
joroshiba Nov 18, 2023
ea5aad8
quote change
joroshiba Nov 18, 2023
072f8ce
fix filename
joroshiba Nov 18, 2023
5b65b44
secret provider for seq faucet
joroshiba Nov 19, 2023
025c6b2
faucet ingress update
joroshiba Nov 19, 2023
5d733cc
first stab at rollup ingress
joroshiba Nov 19, 2023
f81e65a
update 1
joroshiba Nov 19, 2023
740ebe1
locally builds
joroshiba Nov 19, 2023
f3d5657
cleanup logging
joroshiba Nov 19, 2023
f1afd6a
version bumps
joroshiba Nov 19, 2023
63af21a
explorer path
joroshiba Nov 19, 2023
f70507b
cleanup ingress defs
joroshiba Nov 27, 2023
38b4fbd
minor updates
joroshiba Nov 27, 2023
8a660a3
ingree adjustments
joroshiba Nov 27, 2023
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
2 changes: 1 addition & 1 deletion charts/rollup/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.0
version: 0.6.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
Binary file modified charts/rollup/charts/celestia-node-0.1.0.tgz
Binary file not shown.
4 changes: 4 additions & 0 deletions charts/rollup/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ data:
ASTRIA_CONDUCTOR_EXECUTION_COMMIT_LEVEL: "{{ .Values.config.rollup.executionCommitLevel }}"
ASTRIA_CONDUCTOR_SEQUENCER_URL: "{{ .Values.config.sequencer.websocket }}"
ASTRIA_CONDUCTOR_INITIAL_SEQUENCER_BLOCK_HEIGHT: "{{ .Values.config.sequencer.initialBlockHeight }}"
ASTRIA_CONDUCTOR_ENABLE_OPTIMISM: "{{ .Values.config.rollup.optimism.enabled }}"
ASTRIA_CONDUCTOR_ETHEREUM_L1_URL: "{{ .Values.config.rollup.optimism.ethereumL1Websocket }}"
ASTRIA_CONDUCTOR_OPTIMISM_PORTAL_CONTRACT_ADDRESS: "{{ .Values.config.rollup.optimism.portalContractAddress }}"
ASTRIA_CONDUCTOR_INITIAL_ETHEREUM_L1_BLOCK_HEIGHT: "{{ .Values.config.rollup.optimism.initialEthereumL1BlockHeight }}"
---
apiVersion: v1
kind: ConfigMap
Expand Down
110 changes: 45 additions & 65 deletions charts/rollup/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,85 +2,65 @@
{{- $ingressApiIsStable := eq (include "rollup.ingress.isStable" .) "true" -}}
{{- $ingressSupportsIngressClassName := eq (include "rollup.ingress.supportsIngressClassName" .) "true" -}}
{{- $ingressSupportsPathType := eq (include "rollup.ingress.supportsPathType" .) "true" -}}
{{- $ingressPathType := .Values.ingress.pathType -}}
{{- $extraPaths := .Values.ingress.extraPaths -}}
apiVersion: networking.k8s.io/v1

{{- range $service, $ingress := .Values.ingress.services }}
{{- $servicePort := $ingress.service.port -}}
{{- $serviceName := $ingress.service.name -}}
{{- $ingressPath := $ingress.path -}}
{{- $ingressPathType := $ingress.pathType -}}
{{- $extraPaths := $ingress.extraPaths }}
---
apiVersion: {{ include "rollup.ingress.apiVersion" $ }}
kind: Ingress
metadata:
name: {{ .Values.config.rollup.name }}-ingress
namespace: {{ .Values.global.namespace }}
name: {{ $.Values.config.rollup.name }}-{{ $service }}-ingress
namespace: {{ $.Values.global.namespace }}
labels:
{{- with .Values.ingress.labels }}
{{- toYaml . | nindent 4 }}
{{- with $ingress.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
annotations:
{{- if .Values.ingress.annotations }}
{{- with .Values.ingress.annotations }}
{{- range $key, $value := . }}
kubernetes.io/ingress.class: {{ $.Values.ingress.className }}
{{- if $ingressApiIsStable }}
{{- range $key, $value := $ingress.annotations }}
{{ $key }}: {{ tpl $value $ | quote }}
{{- end }}
{{- end }}
{{- else }}
kubernetes.io/ingress.class: nginx
{{- end }}
spec:
{{- if and $ingressSupportsIngressClassName .Values.ingress.ingressClassName }}
ingressClassName: {{ .Values.ingress.ingressClassName }}
{{- if $ingressSupportsIngressClassName }}
ingressClassName: {{ $.Values.ingress.className }}
{{- end -}}
{{- with .Values.ingress.defaultBackend }}
{{- with $ingress.service }}
defaultBackend:
{{- tpl (toYaml .) $ | nindent 4 }}
service:
{{- tpl (toYaml .) $ | nindent 6 }}
{{- end }}
rules:
{{- if .Values.ingress.hosts }}
{{- with .Values.ingress.hosts }}
{{- tpl (toYaml .) $ | nindent 6 }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
{{- else }}
- host: executor.{{ .Values.config.rollup.name }}.{{ .Values.ingress.hostname }}
http:
paths:
- path: "/"
pathType: Prefix
backend:
service:
name: {{ .Values.config.rollup.name }}-evm-service
port:
name: json-rpc-svc
- host: ws-executor.{{ .Values.config.rollup.name }}.{{ .Values.ingress.hostname }}
http:
paths:
- path: "/"
pathType: Prefix
backend:
service:
name: {{ .Values.config.rollup.name }}-evm-service
port:
name: ws-rpc-svc
- host: faucet.{{ .Values.config.rollup.name }}.{{ .Values.ingress.hostname }}
{{- with $ingress.hosts }}
{{- range $host := . }}
- host: {{ tpl $host $ }}
http:
paths:
- path: "/"
pathType: Prefix
{{- with $extraPaths }}
{{- toYaml . | nindent 10 }}
{{- end }}
- path: {{ $ingressPath }}
{{- if $ingressSupportsPathType }}
pathType: {{ $ingressPathType }}
{{- end }}
backend:
service:
name: {{ .Values.config.rollup.name }}-faucet-service
port:
name: faucet-svc
- host: blockscout.{{ .Values.config.rollup.name }}.{{ .Values.ingress.hostname }}
http:
paths:
- path: "/"
pathType: Prefix
backend:
service:
name: {{ .Values.config.rollup.name }}-blockscout-svc
port:
name: blockscout-svc
{{- end -}}
{{- if $ingressApiIsStable }}
service:
{{- tpl (toYaml $ingress.service) $ | nindent 16 }}
{{- else }}
serviceName: {{ tpl $serviceName $ }}
servicePort: {{ tpl $servicePort $ }}
{{- end }}
{{- end }}
{{- end }}
{{- if $ingress.tls }}
tls:
{{- tpl (toYaml $ingress.tls) $ | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}

6 changes: 3 additions & 3 deletions charts/rollup/templates/secretproviderclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ metadata:
spec:
provider: gcp
secretObjects:
- secretName: {{ $key }}
- secretName: {{ kebabcase $key }}
type: Opaque
data:
- objectName: {{ $value.filename }}
key: {{ $value.key }}
parameters:
secrets: |
- resourceName: "{{ $value.resourceName }}"
filename: "{{ $value.filename }}"
- resourceName: {{ $value.resourceName }}
fileName: "{{ $value.filename }}"
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions charts/rollup/templates/volumes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ $.Values.config.rollup.name }}-{{ $value.persistentVolumeName }}-pvc-geth
namespace: astria-dev-cluster
namespace: {{ $.Values.global.namespace }}
labels:
"app.kubernetes.io/name": "{{ $.Values.config.rollup.name }}-{{ $.Chart.Name }}"
"app.kubernetes.io/managed-by": {{ $.Release.Service | quote }}
Expand All @@ -53,7 +53,7 @@ apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ $.Values.config.rollup.name }}-{{ $value.persistentVolumeName }}-pvc-blockscout
namespace: astria-dev-cluster
namespace: {{ $.Values.global.namespace }}
labels:
"app.kubernetes.io/name": {{ $.Values.config.rollup.name }}-{{ $.Chart.Name }}
"app.kubernetes.io/managed-by": {{ $.Release.Service | quote }}
Expand Down
127 changes: 82 additions & 45 deletions charts/rollup/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ config:
- address: "0xaC21B97d35Bf75A7dAb16f35b111a50e78A72F30"
# The balance must be a string due to size
balance: "1000000000000000000000"
optimism:
# set to true to enable op-stack integration, and setup rest of config
enabled: false
# Websocket URL of Ethereum L1 node.
ethereumL1Websocket: "ws://127.0.0.1:8545"
# Contract address of the OptimismPortal contract on L1.
portalContractAddress: ""
# The block height of the Ethereum L1 chain that the
# OptimismPortal contract was deployed at.
initialEthereumL1BlockHeight: 1

faucet:
# The account from which the faucet disburses funds, likely want to have
Expand Down Expand Up @@ -76,7 +86,7 @@ celestia-node:
images:
# Core images for the rollup, developed for Astria
geth: "ghcr.io/astriaorg/go-ethereum:0.4.1"
conductor: "ghcr.io/astriaorg/conductor:0.9.0--conductor"
conductor: "ghcr.io/astriaorg/conductor:0.10.0--conductor"
composer: "ghcr.io/astriaorg/composer:0.2.5--composer"

# Rollup faucet
Expand Down Expand Up @@ -111,51 +121,78 @@ secretProvider:

ingress:
enabled: true
# This is only used when using the default hosts and not overriding below.
hostname: localdev.me
# For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
# See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
# ingressClassName: nginx
# Values can be templated
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
labels: {}
hosts: {}
# - host: executor.example.com
# http:
# paths:
# - path: "/"
# pathType: Prefix
# backend:
# service:
# name: astria-evm-service
# port:
# name: json-rpc-svc
# - host: faucet.example.com
# http:
# paths:
# - path: "/"
# pathType: Prefix
# backend:
# service:
# name: astria-faucet-service
# port:
# name: faucet-svc
# - host: blockscout.example.com
# http:
# paths:
# - path: "/"
# pathType: Prefix
# backend:
# service:
# name: astria-blockscout-svc
# port:
# name: blockscout-svc
tls: {}
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
hostname: localdev.me
className: nginx
services:
rpc:
hosts:
- executor.{{ .Values.config.rollup.name }}.{{ .Values.ingress.hostname }}
path: /
pathType: Prefix
service:
name: "{{ .Values.config.rollup.name }}-evm-service"
port:
name: json-rpc-svc
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
labels: {}
tls: {}
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
ws:
hosts:
- ws-executor.{{ .Values.config.rollup.name }}.{{ .Values.ingress.hostname }}
path: /
pathType: Prefix
service:
name: "{{ .Values.config.rollup.name }}-evm-service"
port:
name: ws-rpc-svc
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
labels: {}
tls: {}
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
faucet:
hosts:
- faucet.{{ .Values.config.rollup.name }}.{{ .Values.ingress.hostname }}
path: /
pathType: Prefix
service:
name: "{{ .Values.config.rollup.name }}-faucet-service"
port:
name: faucet-svc
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
labels: {}
tls: {}
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
explorer:
hosts:
- blockscout.{{ .Values.config.rollup.name }}.{{ .Values.ingress.hostname }}
path: /
pathType: Prefix
service:
name: "{{ .Values.config.rollup.name }}-blockscout-svc"
port:
name: blockscout-svc
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
labels: {}
tls: {}
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

# Default persistent storage values
# NOTE - `rollupName` will be used with `persistentVolumeName` to generate names for kubernetes resources.
Expand Down
2 changes: 1 addition & 1 deletion charts/sequencer-faucet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.4
version: 0.3.0

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