Skip to content

Commit

Permalink
Update blobscan charts (#8)
Browse files Browse the repository at this point in the history
- Added redis dependency
- Upgrade postgresql to version 16
- Adjust required variables
- Use new lighter docker images
  • Loading branch information
PabloCastellano authored Aug 7, 2024
1 parent 79e8334 commit fc5ab76
Show file tree
Hide file tree
Showing 12 changed files with 86 additions and 62 deletions.
6 changes: 3 additions & 3 deletions charts/blobscan-api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: v2
name: blobscan-api
description: Blobscan tRPC API
description: Blobscan API
home: https://blobscan.com
icon: https://raw.githubusercontent.com/Blobscan/blobscan/next/.github/assets/blobi.jpeg
icon: https://raw.githubusercontent.com/Blobscan/blobscan/main/.github/assets/logo.svg
sources:
- https://github.com/blobscan/blobscan/
type: application
version: 0.2.8
version: 0.3.0
maintainers:
- name: PabloCastellano
email: pablo@anche.no
8 changes: 4 additions & 4 deletions charts/blobscan-api/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

# blobscan-api

![Version: 0.2.8](https://img.shields.io/badge/Version-0.2.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![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)

Blobscan tRPC API
Blobscan API

**Homepage:** <https://blobscan.com>

Expand Down Expand Up @@ -31,8 +31,8 @@ Blobscan tRPC API
| fullnameOverride | string | `""` | Overrides the chart's computed fullname |
| httpPort | int | `3001` | Ports |
| image.pullPolicy | string | `"IfNotPresent"` | blobscan container pull policy |
| image.repository | string | `"blossomlabs/blobscan"` | blobscan container image repository |
| image.tag | string | `"next"` | blobscan container image tag |
| image.repository | string | `"blossomlabs/blobscan-api"` | blobscan container image repository |
| image.tag | string | `"latest"` | blobscan container image tag |
| imagePullSecrets | list | `[]` | Image pull secrets for Docker images |
| ingress.annotations | object | `{}` | Annotations for Ingress |
| ingress.enabled | bool | `false` | Ingress resource for the HTTP API |
Expand Down
14 changes: 8 additions & 6 deletions charts/blobscan-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,18 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
env:
- name: CHAIN_ID
value: {{ .Values.config.CHAIN_ID | quote }}
- name: DATABASE_URL
value: {{ .Values.config.DATABASE_URL | quote }}
- name: REDIS_URI
value: {{ .Values.config.REDIS_URI | quote }}
- name: SECRET_KEY
value: {{ .Values.config.SECRET_KEY | quote }}
- name: BEACON_NODE_ENDPOINT
value: {{ .Values.config.BEACON_NODE_ENDPOINT | quote }}
- name: CHAIN_ID
value: {{ .Values.config.CHAIN_ID | quote }}
- name: NETWORK_NAME
value: {{ .Values.config.NETWORK_NAME | quote }}
- name: BLOBSCAN_API_BASE
value: {{ .Values.config.BLOBSCAN_API_BASE | quote }}
- name: BLOBSCAN_API_PORT
value: {{ .Values.httpPort | quote }}
- name: POSTGRES_STORAGE_ENABLED
Expand All @@ -108,8 +112,6 @@ spec:
value: {{ .Values.config.METRICS_ENABLED | quote }}
- name: TRACES_ENABLED
value: {{ .Values.config.TRACES_ENABLED | quote }}
- name: BEE_DEBUG_ENDPOINT
value: {{ .Values.config.BEE_DEBUG_ENDPOINT | quote }}
- name: BEE_ENDPOINT
value: {{ .Values.config.BEE_ENDPOINT | quote }}
{{- range $key, $value := .Values.secretEnv }}
Expand Down
21 changes: 11 additions & 10 deletions charts/blobscan-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ replicas: 1

image:
# -- blobscan container image repository
repository: blossomlabs/blobscan
repository: blossomlabs/blobscan-api
# -- blobscan container image tag
tag: next
tag: latest
# -- blobscan container pull policy
pullPolicy: IfNotPresent

Expand All @@ -28,29 +28,30 @@ args: []
# @default -- See `values.yaml`
# https://github.com/Blobscan/blobscan/blob/next/.env.example
config:
CHAIN_ID: "1"
DATABASE_URL: "postgresql://postgres:postgres@blobscan-blobscandb:5432/blobscan?ssl=false"
REDIS_URI: "redis://blobscan-redis-master:6379/1"
SECRET_KEY: "supersecret"
BEACON_NODE_ENDPOINT: "http://beacon-node:5052"
CHAIN_ID: "1"
BLOBSCAN_API_PORT: "3001"
# Storages
NETWORK_NAME: "mainnet"
BLOBSCAN_API_BASE_URL: "http://blobscan-api:3001"
BLOBSCAN_API_PORT: 3001
# Storages: General
POSTGRES_STORAGE_ENABLED: "true"
SWARM_STORAGE_ENABLED: "false"
GOOGLE_STORAGE_ENABLED: "false"
# Google cloud storage specific
# Storages: Google Cloud specific
GOOGLE_STORAGE_BUCKET_NAME: ""
GOOGLE_STORAGE_PROJECT_ID: ""
GOOGLE_SERVICE_KEY: ""
# Storages: Swarm specific
BEE_ENDPOINT: "http://localhost:1633"
# Opentelemetry
OTLP_AUTH_USERNAME: ""
OTLP_AUTH_PASSWORD: ""
OTEL_EXPORTER_OTLP_PROTOCOL: "http/protobuf"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://localhost:4318"
METRICS_ENABLED: "true"
TRACES_ENABLED: "false"
# Swarm storage specific
BEE_DEBUG_ENDPOINT: "http://localhost:1635"
BEE_ENDPOINT: "http://localhost:1633"

# -- Additional env variables
extraEnv: []
Expand Down
4 changes: 2 additions & 2 deletions charts/blobscan-indexer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ apiVersion: v2
name: blobscan-indexer
description: Blobscan-indexer indexes blobs using Blobscan API.
home: https://blobscan.com
icon: https://raw.githubusercontent.com/Blobscan/blobscan/next/.github/assets/blobi.jpeg
icon: https://raw.githubusercontent.com/Blobscan/blobscan/main/.github/assets/logo.svg
sources:
- https://github.com/blobscan/blobscan-indexer
type: application
version: 0.2.9
version: 0.2.10
maintainers:
- name: PabloCastellano
email: pablo@anche.no
2 changes: 1 addition & 1 deletion charts/blobscan-indexer/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# blobscan-indexer

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

Blobscan-indexer indexes blobs using Blobscan API.

Expand Down
8 changes: 5 additions & 3 deletions charts/blobscan-indexer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ args: []
# @default -- See `values.yaml`
# https://github.com/Blobscan/blobscan/blob/next/.env.example
config:
SECRET_KEY: "supersecret"
BLOBSCAN_API_ENDPOINT: "http://blobscan-api:3001"
BEACON_NODE_ENDPOINT: "http://beacon-node:5052"
BLOBSCAN_API_ENDPOINT: "http://blobscan-api:3001"
EXECUTION_NODE_ENDPOINT: "http://execution-node:8545"
SENTRY_DSN: ""
SECRET_KEY: "supersecret"
NETWORK_NAME: "mainnet"
# DENCUN_FORK_SLOT
RUST_LOG: "blob_indexer=INFO"
SENTRY_DSN: ""

# -- Additional env variables
extraEnv: []
Expand Down
9 changes: 6 additions & 3 deletions charts/blobscan/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 11.9.13
digest: sha256:b782ea429a5ef0b8a2cc7bbc5196c3f385389115d81fefeee452d4510641476b
generated: "2023-08-25T18:04:09.882756415+02:00"
version: 15.5.20
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 19.6.4
digest: sha256:0162d54327769d6492c9809d3eaffbc58fbcce75bbf595a000190d1f6fcc080b
generated: "2024-08-07T17:15:26.012754279+02:00"
23 changes: 16 additions & 7 deletions charts/blobscan/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
apiVersion: v2
name: blobscan
version: 0.3.0
description: Blobscan is the first blockchain explorer that helps to navigate and visualize those EIP-4844 blobs
type: application
keywords:
- ethereum
- eip4844
- blobs
home: https://blobscan.com
icon: https://raw.githubusercontent.com/Blobscan/blobscan/next/.github/assets/blobi.jpeg
sources:
- https://github.com/blobscan/blobscan/
type: application
version: 0.2.12
maintainers:
- name: PabloCastellano
email: pablo@anche.no
dependencies:
- name: postgresql
repository: "https://charts.bitnami.com/bitnami"
version: "11.9.13"
version: 15.5.20
alias: blobscandb
condition: blobscandb.enabled
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 19.6.4
alias: redis
condition: redis.enabled
maintainers:
- name: PabloCastellano
email: pablo@anche.no
icon: https://raw.githubusercontent.com/Blobscan/blobscan/main/.github/assets/logo.svg
14 changes: 9 additions & 5 deletions charts/blobscan/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# blobscan

![Version: 0.2.12](https://img.shields.io/badge/Version-0.2.12-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![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)

Blobscan is the first blockchain explorer that helps to navigate and visualize those EIP-4844 blobs

Expand All @@ -15,7 +15,8 @@ Blobscan is the first blockchain explorer that helps to navigate and visualize t

| Repository | Name | Version |
|------------|------|---------|
| https://charts.bitnami.com/bitnami | blobscandb(postgresql) | 11.9.13 |
| https://charts.bitnami.com/bitnami | blobscandb(postgresql) | 15.5.20 |
| https://charts.bitnami.com/bitnami | redis(redis) | 19.6.4 |

## Values

Expand All @@ -32,7 +33,7 @@ Blobscan is the first blockchain explorer that helps to navigate and visualize t
| blobscandb.image.pullPolicy | string | `"IfNotPresent"` | |
| blobscandb.image.registry | string | `"docker.io"` | |
| blobscandb.image.repository | string | `"bitnami/postgresql"` | |
| blobscandb.image.tag | string | `"14-debian-11"` | |
| blobscandb.image.tag | string | `"16-debian-12"` | |
| blobscandb.primary.persistence.enabled | bool | `true` | |
| blobscandb.primary.persistence.size | string | `"100Gi"` | |
| config | object | See `values.yaml` | Config file https://github.com/Blobscan/blobscan/blob/next/.env.example |
Expand All @@ -48,8 +49,8 @@ Blobscan is the first blockchain explorer that helps to navigate and visualize t
| fullnameOverride | string | `""` | Overrides the chart's computed fullname |
| httpPort | int | `3000` | Ports |
| image.pullPolicy | string | `"IfNotPresent"` | blobscan container pull policy |
| image.repository | string | `"blossomlabs/blobscan"` | blobscan container image repository |
| image.tag | string | `"next"` | blobscan container image tag |
| image.repository | string | `"blossomlabs/blobscan-web"` | blobscan container image repository |
| image.tag | string | `"latest"` | blobscan container image tag |
| imagePullSecrets | list | `[]` | Image pull secrets for Docker images |
| ingress.annotations | object | `{}` | Annotations for Ingress |
| ingress.enabled | bool | `false` | Ingress resource for the HTTP API |
Expand All @@ -65,6 +66,9 @@ Blobscan is the first blockchain explorer that helps to navigate and visualize t
| podLabels | object | `{}` | Pod labels |
| priorityClassName | string | `nil` | Pod priority class |
| readinessProbe | object | See `values.yaml` | Readiness probe |
| redis.architecture | string | `"standalone"` | |
| redis.auth.enabled | bool | `false` | |
| redis.enabled | bool | `true` | If enabled a redis chart will be deployed as a dependency |
| replicas | int | `1` | Number of replicas |
| resources | object | `{}` | Resource requests and limits |
| secretEnv | object | `{}` | Secret env variables injected via a created secret |
Expand Down
16 changes: 7 additions & 9 deletions charts/blobscan/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,14 @@ spec:
env:
- name: DATABASE_URL
value: {{ .Values.config.DATABASE_URL | quote }}
- name: NETWORK_NAME
value: {{ .Values.config.NETWORK_NAME | quote }}
- name: BLOBSCAN_API_BASE_URL
value: {{ .Values.config.BLOBSCAN_API_BASE_URL | quote }}
- name: BLOBSCAN_API_PORT
value: {{ .Values.config.BLOBSCAN_API_PORT | quote }}
- name: SECRET_KEY
value: {{ .Values.config.SECRET_KEY | quote}}
- name: NEXT_PUBLIC_NETWORK_NAME
value: {{ .Values.config.NEXT_PUBLIC_NETWORK_NAME | quote }}
- name: NEXT_PUBLIC_BEACON_BASE_URL
value: {{ .Values.config.NEXT_PUBLIC_BEACON_BASE_URL | quote }}
- name: NEXT_PUBLIC_EXPLORER_BASE_URL
value: {{ .Values.config.NEXT_PUBLIC_EXPLORER_BASE_URL | quote }}
- name: CHAIN_ID
value: {{ .Values.config.CHAIN_ID | quote }}
value: {{ .Values.config.SECRET_KEY | quote }}
- name: POSTGRES_STORAGE_ENABLED
value: {{ .Values.config.POSTGRES_STORAGE_ENABLED | quote }}
- name: SWARM_STORAGE_ENABLED
Expand Down
23 changes: 14 additions & 9 deletions charts/blobscan/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ replicas: 1

image:
# -- blobscan container image repository
repository: blossomlabs/blobscan
repository: blossomlabs/blobscan-web
# -- blobscan container image tag
tag: next
tag: latest
# -- blobscan container pull policy
pullPolicy: IfNotPresent

Expand All @@ -29,12 +29,11 @@ args: []
# @default -- See `values.yaml`
# https://github.com/Blobscan/blobscan/blob/next/.env.example
config:
DATABASE_URL: "postgresql://postgres:postgres@blobscan-blobscandb:5432/blobscan?schema=public"
DATABASE_URL: "postgresql://postgres:postgres@blobscan-blobscandb:5432/blobscan?ssl=false"
NETWORK_NAME: "mainnet"
BLOBSCAN_API_BASE_URL: "http://blobscan-api:3001"
BLOBSCAN_API_PORT: 3001
SECRET_KEY: "supersecret"
NEXT_PUBLIC_NETWORK_NAME: "mainnet"
NEXT_PUBLIC_BEACON_BASE_URL: "https://beaconcha.in/"
NEXT_PUBLIC_EXPLORER_BASE_URL: "https://etherscan.io/"
CHAIN_ID: "1"
# Storages
POSTGRES_STORAGE_ENABLED: "true"
SWARM_STORAGE_ENABLED: "false"
Expand All @@ -52,7 +51,6 @@ config:
METRICS_ENABLED: "true"
TRACES_ENABLED: "false"


# -- Additional env variables
extraEnv: []

Expand Down Expand Up @@ -229,9 +227,16 @@ blobscandb:
image:
registry: docker.io
repository: bitnami/postgresql
tag: 14-debian-11
tag: 16-debian-12
pullPolicy: IfNotPresent
primary:
persistence:
enabled: true
size: 100Gi

redis:
# -- If enabled a redis chart will be deployed as a dependency
enabled: true
architecture: standalone
auth:
enabled: false

0 comments on commit fc5ab76

Please sign in to comment.