Skip to content

Commit

Permalink
Merge branch 'develop' into renovate/kube-prometheus-stack-59.x
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaizet-ledger authored May 31, 2024
2 parents 56d3e8f + e26862b commit dd3a4f7
Show file tree
Hide file tree
Showing 11 changed files with 69 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/lint-test-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Lint,test charts

on:
push:
paths:
- "charts/**"

jobs:
changed:
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
.idea
genesis.json
config-contracts.toml
charts/scroll-stack/*.json
charts/scroll-stack/*.json
.env.frontend
4 changes: 2 additions & 2 deletions charts/scroll-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ dependencies:
condition: l2geth-rpc.enabled
- name: grafana
repository: "https://grafana.github.io/helm-charts"
version: 6.61.2
version: 7.3.11
condition: grafana.enabled
- name: l2geth-signer
version: 0.0.1
Expand All @@ -74,7 +74,7 @@ dependencies:
condition: loki-stack.enabled
- name: postgresql
repository: "oci://registry-1.docker.io/bitnamicharts"
version: 13.2.21
version: 13.4.6
condition: postgresql.enabled
- name: kube-prometheus-stack
repository: "https://prometheus-community.github.io/helm-charts"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ controller:
image:
repository: ghcr.io/blockscout/smart-contract-verifier
pullPolicy: Always
tag: v1.3.1
tag: v1.7.0

env:
- name: SMART_CONTRACT_VERIFIER__SERVER__HTTP__ENABLED
Expand Down
15 changes: 15 additions & 0 deletions charts/scroll-stack/charts/frontends/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ image:
pullPolicy: Always
tag: 2.2.4

command:
[
"/bin/bash",
"-c",
"cp /app/conf/.env.frontend /usr/share/nginx/html/.env && \
/usr/local/bin/entrypoint.sh"
]

service:
main:
enabled: true
Expand All @@ -28,6 +36,13 @@ resources:
memory: "500Mi"
cpu: "100m"

persistence:
*app_name:
enabled: yes
type: configMap
mountPath: /app/conf/
name: frontends-config

defaultProbes: &default_probes
enabled: true
custom: true
Expand Down
20 changes: 18 additions & 2 deletions charts/scroll-stack/charts/l2geth-bootnode/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ command: ["bash",
$METRICS_FLAGS \
--txpool.globalqueue 4096 --txpool.globalslots 40960 --txpool.pricelimit \"$L2GETH_MIN_GAS_PRICE\" $LOCALS_FLAG \
--l1.endpoint \"$L2GETH_L1_ENDPOINT\" --l1.confirmations \"$L2GETH_L1_WATCHER_CONFIRMATIONS\" --l1.sync.startblock \"$L2GETH_L1_CONTRACT_DEPLOYMENT_BLOCK\" \
--miner.gasprice \"$L2GETH_MIN_GAS_PRICE\" --rpc.gascap 0 --gpo.ignoreprice \"$L2GETH_MIN_GAS_PRICE\" $L2GETH_EXTRA_PARAMS"
--miner.gasprice \"$L2GETH_MIN_GAS_PRICE\" --rpc.gascap 0 --gpo.ignoreprice \"$L2GETH_MIN_GAS_PRICE\" \
--metrics --metrics.expensive \
$L2GETH_EXTRA_PARAMS"
]

defaultProbes: &default_probes
Expand Down Expand Up @@ -92,6 +94,7 @@ persistence:
type: configMap
mountPath: /l2geth/genesis/
name: genesis-config

service:
main:
enabled: true
Expand All @@ -101,4 +104,17 @@ service:
port: 30303
metrics:
enabled: true
port: 8090
port: 6060
targetPort: 6060

serviceMonitor:
main:
enabled: true
labels:
release: scroll-stack
serviceName: '{{ include "bjw-s.common.lib.chart.names.fullname" $ }}'
endpoints:
- port: metrics
interval: 1m
scrapeTimeout: 10s
path: /debug/metrics/prometheus
18 changes: 16 additions & 2 deletions charts/scroll-stack/charts/l2geth-rpc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ service:
port: &WS_PORT 8546
metrics:
enabled: true
port: 8090
port: 6060
targetPort: 6060

defaultProbes: &default_probes
enabled: true
Expand Down Expand Up @@ -101,6 +102,7 @@ command: ["bash",
--gpo.blocks 100 \
--l1.endpoint \"$L2GETH_L1_ENDPOINT\" --l1.confirmations \"$L2GETH_L1_WATCHER_CONFIRMATIONS\" --l1.sync.startblock \"$L2GETH_L1_CONTRACT_DEPLOYMENT_BLOCK\" \
--rollup.verify \
--metrics --metrics.expensive \
$L2GETH_EXTRA_PARAMS"
]

Expand All @@ -115,4 +117,16 @@ persistence:
enabled: yes
type: configMap
mountPath: /l2geth/genesis/
name: genesis-config
name: genesis-config

serviceMonitor:
main:
enabled: true
labels:
release: scroll-stack
serviceName: '{{ include "bjw-s.common.lib.chart.names.fullname" $ }}'
endpoints:
- port: metrics
interval: 1m
scrapeTimeout: 10s
path: /debug/metrics/prometheus
2 changes: 1 addition & 1 deletion charts/scroll-stack/charts/l2geth-signer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ command: ["bash",
--gpo.percentile 20 \
--gpo.blocks 100 \
--l1.endpoint \"$L2GETH_L1_ENDPOINT\" --l1.confirmations \"$L2GETH_L1_WATCHER_CONFIRMATIONS\" --l1.sync.startblock \"$L2GETH_L1_CONTRACT_DEPLOYMENT_BLOCK\" \
--rollup.verify
--rollup.verify \
--metrics --metrics.expensive \
$L2GETH_EXTRA_PARAMS"]

Expand Down
11 changes: 11 additions & 0 deletions charts/scroll-stack/templates/config-file-for-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,14 @@ data:
{{ (.Files.Glob "coordinator-config.json").AsConfig | indent 2 }}
---
{{- end }}
{{- if index .Values "frontends" "enabled" }}
apiVersion: v1
kind: ConfigMap
metadata:
labels:
{{- include "scroll-stack.labels" $ | nindent 4 }}
name: frontends-config
data:
{{ (.Files.Glob ".env.frontend").AsConfig | indent 2 }}
---
{{- end }}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Run the following script to get the dependencies of each helm charts
Run this command to generate config.toml file and genesis file
```bash
cd charts/scroll-stack
time docker run --rm -it -v .:/contracts/volume scrolltech/scroll-stack-contracts:gen-configs-e2b87879
time docker run --rm -it -v .:/contracts/volume scrolltech/scroll-stack-contracts:gen-configs-2b5b82d4
```

## Launch scroll-stack
Expand Down

0 comments on commit dd3a4f7

Please sign in to comment.