Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[config] fixed db address #66

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
6 changes: 3 additions & 3 deletions kube/indexer/starcoin-indexer-halley-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: starcoin-indexer
image: starcoin/starcoin_indexer:sha-3af1c2a
image: starcoin/starcoin_indexer:halley_fix_db_1
ports:
- containerPort: 8300
env:
Expand All @@ -37,7 +37,7 @@ spec:
- name: STARCOIN_ES_URL
value: "search-starcoin-es2-47avtmhexhbg7qtynzebcnnu64.ap-northeast-1.es.amazonaws.com"
- name: TXN_OFFSET
value: "451993"
value: "0"
- name: STARCOIN_ES_PROTOCOL
value: "https"
- name: STARCOIN_ES_PORT
Expand All @@ -49,7 +49,7 @@ spec:
- name: SWAP_CONTRACT_ADDR
value: "0xbd7e8be8fae9f60f2f5136433e36a091"
- name: DS_URL
value: "jdbc:postgresql://starcoin-pg.c0bz9kehdvnb.ap-northeast-1.rds.amazonaws.com/starcoin"
value: "jdbc:postgresql://database-1.c0bz9kehdvnb.ap-northeast-1.rds.amazonaws.com/starcoin"
- name: DB_USER_NAME
value: "starcoin"
- name: DB_PWD
Expand Down
64 changes: 64 additions & 0 deletions kube/indexer/starcoin-indexer-repair-halley-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: starcoin-indexer-repair-deployment
namespace: starcoin-halley
labels:
app: starcoin-indexer-repair
spec:
replicas: 1
selector:
matchLabels:
app: starcoin-indexer-repair
template:
metadata:
labels:
app: starcoin-indexer-repair
spec:
containers:
- name: starcoin-indexer-repair
image: starcoin/starcoin_indexer:halley_fix_db_1
ports:
- containerPort: 8300
env:
- name: HOSTS
value: "halley.seed.starcoin.org"
- name: NETWORK
value: "halley.0727"
- name: BG_TASK_JOBS
value: "indexer,secondary,market_cap,txn_payload"
- name: BULK_SIZE
value: "80"
- name: STARCOIN_ES_PWD
valueFrom:
secretKeyRef:
name: elasticsearch-pw-elastic
key: password
- name: STARCOIN_ES_URL
value: "search-starcoin-es2-47avtmhexhbg7qtynzebcnnu64.ap-northeast-1.es.amazonaws.com"
- name: TXN_OFFSET
value: "0"
- name: STARCOIN_ES_PROTOCOL
value: "https"
- name: STARCOIN_ES_PORT
value: "443"
- name: STARCOIN_ES_USER
value: elastic
- name: SWAP_API_URL
value: "https://swap-api.starswap.xyz"
- name: SWAP_CONTRACT_ADDR
value: "0xbd7e8be8fae9f60f2f5136433e36a091"
- name: DS_URL
value: "jdbc:postgresql://database-1.c0bz9kehdvnb.ap-northeast-1.rds.amazonaws.com/starcoin"
- name: DB_USER_NAME
value: "starcoin"
- name: DB_PWD
valueFrom:
secretKeyRef:
name: postgresql-starcoin-yu
key: password
- name: DB_SCHEMA
value: "halley"
- name: PROGRAM_ARGS
value: "auto_repair 1"
#valume:
64 changes: 64 additions & 0 deletions kube/indexer/starcoin-indexer-vega-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: starcoin-indexer-deployment
namespace: starcoin-vega
labels:
app: starcoin-indexer
spec:
replicas: 1
selector:
matchLabels:
app: starcoin-indexer
template:
metadata:
labels:
app: starcoin-indexer
spec:
containers:
- name: starcoin-indexer
image: starcoin/starcoin_indexer:halley_fix_db_2
ports:
- containerPort: 8300
env:
- name: HOSTS
value: "vega.seed.starcoin.org"
- name: NETWORK
value: "vega.0727"
- name: BG_TASK_JOBS
value: "indexer,secondary,market_cap,txn_payload,swap_stats,txn_global_idx_update"
- name: BULK_SIZE
value: "80"
- name: STARCOIN_ES_PWD
valueFrom:
secretKeyRef:
name: elasticsearch-pw-elastic
key: password
- name: STARCOIN_ES_URL
value: "search-starcoin-es2-47avtmhexhbg7qtynzebcnnu64.ap-northeast-1.es.amazonaws.com"
- name: TXN_OFFSET
value: "0"
- name: STARCOIN_ES_PROTOCOL
value: "https"
- name: STARCOIN_ES_PORT
value: "443"
- name: STARCOIN_ES_USER
value: elastic
- name: SWAP_API_URL
value: "https://swap-api.starswap.xyz"
- name: SWAP_CONTRACT_ADDR
value: "0xbd7e8be8fae9f60f2f5136433e36a091"
- name: DS_URL
value: "jdbc:postgresql://database-1.c0bz9kehdvnb.ap-northeast-1.rds.amazonaws.com/starcoin"
- name: DB_USER_NAME
value: "starcoin"
- name: DB_PWD
valueFrom:
secretKeyRef:
name: postgresql-starcoin-yu
key: password
- name: DB_SCHEMA
value: "vega"
- name: PROGRAM_ARGS
value: ""
#valume:
Loading
Loading