zksync

by Chronicle Labs

Helm chartv0.1.2App v24.0.0Verified publisher

A Helm chart for deploying zkSync RPC nodes on Kubernetes

About this chart

zksync

A Helm chart for deploying zkSync RPC nodes on Kubernetes

Maintainers

NameEmailUrl
chronicleprotocolhttps://github.com/chronicleprotocol

Values

KeyTypeDefaultDescription
affinityobject{}
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
databaseobject{"poolSize":"50","url":{"default":"postgres://zksync:zksync@localhost/mainnet2","fromSecret":false}}---------------------------------------------------------------------- Config of the Postgres DB.
ethClientUrlstring"https://rpc.ankr.com/eth"
fullnameOverridestring""
healthcheckPortint3081
httpPortint3060---------------------------------------------------------------------- Port on which to serve the HTTP JSONRPC API.
image.pullPolicystring"IfNotPresent"
image.repositorystring"matterlabs/external-node"
image.tagstring"v24.0.0@sha256:6cbfea4c694a77bb4e02dc82eb804cf1ec05abd0feec779519bc00865c51f1de"Pinned to a digest for supply-chain integrity (multi-arch index).
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
l1ChainIdstring"1"
l2ChainIdstring"324"
livenessProbe.httpGet.pathstring"/health"
livenessProbe.httpGet.portstring"healthcheck"
livenessProbe.initialDelaySecondsint60
livenessProbe.periodSecondsint120
logFormatstring"json"
mainNodeUrlstring"https://zksync2-mainnet.zksync.io"
nameOverridestring""
nodeSelectorobject{}
persistence.accessModeslist["ReadWriteOnce"]Access mode for the volume claim template
persistence.annotationsobject{}Annotations for volume claim template
persistence.enabledboolfalseUses an EmptyDir when not enabled
persistence.existingClaimstringnilUse an existing PVC when persistence.enabled
persistence.selectorobject{}Selector for volume claim template
persistence.sizestring"1024Gi"Requested size for volume claim template
persistence.storageClassNamestringnilUse a specific storage class E.g 'local-path' for local storage to achieve best performance Read more (https://github.com/rancher/local-path-provisioner)
podAnnotationsobject{}
podSecurityContextobject{}
postgres.args[0]string"-c"
postgres.args[10]string"-c"
postgres.args[11]string"checkpoint_completion_target=0.9"
postgres.args[12]string"-c"
postgres.args[13]string"wal_buffers=16MB"
postgres.args[14]string"-c"
postgres.args[15]string"default_statistics_target=500"
postgres.args[16]string"-c"
postgres.args[17]string"random_page_cost=1.1"
postgres.args[18]string"-c"
postgres.args[19]string"effective_io_concurrency=200"
postgres.args[1]string"log_error_verbosity=terse"
postgres.args[20]string"-c"
postgres.args[21]string"work_mem=2573kB"
postgres.args[22]string"-c"
postgres.args[23]string"huge_pages=try"
postgres.args[24]string"-c"
postgres.args[25]string"min_wal_size=4GB"
postgres.args[26]string"-c"
postgres.args[27]string"max_wal_size=16GB"
postgres.args[28]string"-c"
postgres.args[29]string"max_worker_processes=74"
postgres.args[2]string"-c"
postgres.args[30]string"-c"
postgres.args[31]string"max_parallel_workers_per_gather=37"
postgres.args[32]string"-c"
postgres.args[33]string"max_parallel_workers=74"
postgres.args[34]string"-c"
postgres.args[35]string"max_parallel_maintenance_workers=4"
postgres.args[36]string"-c"
postgres.args[37]string"checkpoint_timeout=1800"
postgres.args[3]string"max_connections=256"
postgres.args[4]string"-c"
postgres.args[5]string"shared_buffers=47616MB"
postgres.args[6]string"-c"
postgres.args[7]string"effective_cache_size=142848MB"
postgres.args[8]string"-c"
postgres.args[9]string"maintenance_work_mem=2GB"
postgres.databaseNamestring"mainnet2"
postgres.fullnameOverridestring""
postgres.image.pullPolicystring"IfNotPresent"
postgres.image.repositorystring"postgres"
postgres.image.tagstring"14@sha256:3e7dd0bfd7bfb4fc1278d1a354da44375dfe924bed8eaf83ae14967d84dede5b"Pinned to a digest for supply-chain integrity (multi-arch index).
postgres.imagePullSecretslist[]
postgres.livenessProbe.initialDelaySecondsint60
postgres.livenessProbe.periodSecondsint120
postgres.livenessProbe.tcpSocket.portstring"postgres"
postgres.nameOverridestring""
postgres.password.defaultstring"zksync"
postgres.password.fromSecretboolfalse
postgres.persistence.accessModeslist["ReadWriteOnce"]Access mode for the volume claim template
postgres.persistence.annotationsobject{}Annotations for volume claim template
postgres.persistence.enabledboolfalseUses an EmptyDir when not enabled
postgres.persistence.existingClaimstringnilUse an existing PVC when persistence.enabled
postgres.persistence.selectorobject{}Selector for volume claim template
postgres.persistence.sizestring"1024Gi"Requested size for volume claim template
postgres.persistence.storageClassNamestringnilUse a specific storage class E.g 'local-path' for local storage to achieve best performance Read more (https://github.com/rancher/local-path-provisioner)
postgres.readinessProbe.initialDelaySecondsint10
postgres.readinessProbe.periodSecondsint10
postgres.readinessProbe.tcpSocket.portstring"postgres"
postgres.resourcesobject{}
postgres.securityContextobject{}
postgres.service.ports.postgres.portint5432
postgres.service.ports.postgres.protocolstring"TCP"
postgres.service.typestring"ClusterIP"
postgres.serviceAccount.annotationsobject{}
postgres.serviceAccount.createbooltrue
postgres.serviceAccount.namestring""
postgres.user.defaultstring"zksync"
postgres.user.fromSecretboolfalse
readinessProbe.httpGet.pathstring"/health"
readinessProbe.httpGet.portstring"healthcheck"
readinessProbe.initialDelaySecondsint10
readinessProbe.periodSecondsint10
replicaCountint1
resourcesobject{}
restoreDumpobject{"enabled":true,"snapshotUrl":"zksync-era-mainnet-external-node-snapshots"}Download from snapshot. will run snapshot sync before starting node in an initContainer. refer to https://github.com/matter-labs/ansible-en-role?tab=readme-ov-file#step-by-step-guide
rustLogstring"zksync_external_node=info,zksync_core=info,zksync_core::sync_layer=info,zksync_server=info,zksync_prover=info,zksync_contract_verifier=info,zksync_dal=info,zksync_eth_client=info,zksync_storage=info,zksync_db_manager=info,zksync_merkle_tree=info,zksync_state=info,zksync_utils=info,zksync_types=info,loadnext=info,dev_ticker=info,vm=info,block_sizes_test=info,zksync_verification_key_generator_and_server=info,zksync_object_store=info,setup_key_generator_and_server=info,zksync_circuit_synthesizer=info,zksync_queued_job_processor=info,zksync_health_check=info"
securityContextobject{}
service.ports.healthcheck.portint3081
service.ports.healthcheck.protocolstring"TCP"
service.ports.http.portint3060
service.ports.http.protocolstring"TCP"
service.ports.ws.portint3061
service.ports.ws.protocolstring"TCP"
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
serviceMonitor.annotationsobject{}Additional ServiceMonitor annotations
serviceMonitor.enabledboolfalseIf true, a ServiceMonitor CRD is created for a prometheus operator https://github.com/coreos/prometheus-operator
serviceMonitor.intervalstring"1m"ServiceMonitor scrape interval
serviceMonitor.labelsobject{}Additional ServiceMonitor labels
serviceMonitor.namespacestringnilAlternative namespace for ServiceMonitor
serviceMonitor.pathstring"/debug/metrics"Path to scrape
serviceMonitor.relabelingslist[]ServiceMonitor relabelings
serviceMonitor.schemestring"http"ServiceMonitor scheme
serviceMonitor.scrapeTimeoutstring"30s"ServiceMonitor scrape timeout
serviceMonitor.tlsConfigobject{}ServiceMonitor TLS configuration
tolerationslist[]
wsPortint3061

Autogenerated from chart metadata using helm-docs v1.13.1

Deploy zksync with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has zksync on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartzksync is pinned at v0.1.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply