Skip to content

Commit e6b6f61

Browse files
authored
fix(balius): Make database name configurable (was fixed to 'network') (#186)
1 parent 5a31e1a commit e6b6f61

4 files changed

Lines changed: 22 additions & 9 deletions

File tree

charts/balius/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: balius
33
description: Balius server
4-
version: 0.0.2
4+
version: 0.0.3
55
appVersion: "0.0.1"
66

77
sources:

charts/balius/templates/baliusd-configmap.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ metadata:
66
data:
77
baliusd.toml: |
88
network = "{{ .Values.balius.network }}"
9-
lease_name = "balius-chainsync-lease-{{ .Values.balius.network }}"
9+
shard = "balius-{{ .Values.balius.network }}"
1010
prometheus_addr = "0.0.0.0:{{ .Values.balius.prometheusPort }}"
11+
vault_address = "{{ .Values.vault.address }}"
12+
vault_token = "{{ .Values.vault.token }}"
13+
vault_token_renew_interval = "{{ .Values.vault.vault_token_renew_interval }}"
14+
vault_token_renew_seconds = "{{ .Values.vault.vault_token_renew_seconds }}"
1115
1216
[rpc]
1317
listen_address = "0.0.0.0:{{ .Values.balius.containerPort }}"

charts/balius/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spec:
3232
{{- if .Values.balius.serviceAccount.create }}
3333
serviceAccountName: {{ .Values.balius.serviceAccount.name }}
3434
{{- end }}
35-
securityContext: {{toYaml .Values.balius.securityContext | nindent 6 }}
35+
securityContext: {{toYaml .Values.balius.securityContext | nindent 8 }}
3636
containers:
3737
- name: main
3838
image: {{ .Values.balius.image.repository }}:{{ .Values.balius.image.tag }}
@@ -53,7 +53,7 @@ spec:
5353
- name: POSTGRES_HOST
5454
value: {{ .Values.balius.postgresHost }}
5555
- name: BALIUSD_CONNECTION
56-
value: postgres://$(POSTGRES_USER):$(POSTGRES_PASSWORD)@$(POSTGRES_HOST):5432/{{ .Values.balius.network | replace "-" "" }}
56+
value: postgres://$(POSTGRES_USER):$(POSTGRES_PASSWORD)@$(POSTGRES_HOST):5432/{{ .Values.balius.postgres.database }}
5757
- name: BALIUSD_POD
5858
valueFrom:
5959
fieldRef:

charts/balius/values.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Default values for balius bane
22
fullnameOverride: ""
3-
nameOverride: "mainnet"
3+
nameOverride: ""
44

55
# --- Baliusd Deployment options ---
66
balius:
77
network: mainnet
88
image:
99
repository: ghcr.io/demeter-run/ext-balius-instance
10-
tag: latest
10+
tag: 33ada013c8d53ac05da21b4adb65a8b4bfe67a59
1111
pullPolicy: IfNotPresent
1212
replicas: 1
1313
resources:
@@ -19,6 +19,7 @@ balius:
1919
memory: "256Mi"
2020
containerPort: 3000
2121
prometheusPort: 8000
22+
# Postgres needs ALLOW_NOSSL set to true
2223
postgresHost: "postgres-service"
2324
tolerations: []
2425
affinity: {}
@@ -37,6 +38,7 @@ balius:
3738
labels: {}
3839
# --- Postgres Credentials ---
3940
postgres:
41+
database: balius
4042
usernameSecret:
4143
name: balius.mydb.credentials.postgresql.acid.zalan.do
4244
key: username
@@ -45,10 +47,10 @@ balius:
4547
key: password
4648
# --- ServiceAccount ---
4749
serviceAccount:
48-
create: false
50+
create: true
4951
annotations: {}
5052
labels: {}
51-
name: "default"
53+
name: "balius"
5254
# --- Service ---
5355
service:
5456
annotations: {}
@@ -59,7 +61,8 @@ balius:
5961
metrics: 8000
6062
# --- ConfigMap options ---
6163
configMap:
62-
utxorpc_url: "http://localhost:1234"
64+
# Dingo, Dolos or any UTXO RPC url
65+
utxorpc_url: "http://dolos.dolos.svc.cluster.local:50051"
6366

6467
# --- S3 Configuration & secret creation ---
6568
# Secret will store only AWS_SECRET_ACCESS_KEY
@@ -68,3 +71,9 @@ s3:
6871
aws_region: us-west-2
6972
aws_access_key_id: "AKIAXXXXXXXX"
7073
aws_secret_access_key: "xxxxxxxxxxxxxxxxxxxxxx"
74+
75+
vault:
76+
address: "http://vault.balius.svc.cluster.local:8200"
77+
token: "vault-token-placeholder"
78+
vault_token_renew_interval: "24h"
79+
vault_token_renew_seconds: "600"

0 commit comments

Comments
 (0)