Skip to content

Commit

Permalink
[Deployment] Fixed some configs
Browse files Browse the repository at this point in the history
  • Loading branch information
welbon committed Jul 8, 2024
1 parent 4fe719d commit 5c04432
Show file tree
Hide file tree
Showing 18 changed files with 326 additions and 236 deletions.
40 changes: 23 additions & 17 deletions kube/indexer/stc-scan/stcscan-barnard-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: starcoin-indexer-deployment
name: starcoin-indexer-stcscan-deployment
namespace: starcoin-barnard
labels:
app: starcoin-indexer
app: starcoin-indexer-stcscan
spec:
replicas: 1
selector:
matchLabels:
app: starcoin-indexer
app: starcoin-indexer-stcscan
template:
metadata:
labels:
app: starcoin-indexer
app: starcoin-indexer-stcscan
spec:
containers:
- name: starcoin-indexer
- name: starcoin-indexer-stcscan
image: starcoin/starcoin_indexer:sha-1223fc3
ports:
- containerPort: 8300
Expand All @@ -31,31 +31,37 @@ spec:
value: "0"
- 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"
value: "elasticsearch.default.svc.cluster.local"
- name: STARCOIN_ES_PROTOCOL
value: "https"
value: "http"
- name: STARCOIN_ES_PORT
value: "443"
value: "9200"
- name: STARCOIN_ES_USER
value: elastic
valueFrom:
secretKeyRef:
name: elasticsearch
key: username
- name: STARCOIN_ES_PWD
valueFrom:
secretKeyRef:
name: elasticsearch
key: password
- 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"
value: "jdbc:postgresql://postgres-service.default.svc.cluster.local/starcoin"
- name: DB_USER_NAME
value: "starcoin"
valueFrom:
secretKeyRef:
name: postgresql
key: username
- name: DB_PWD
valueFrom:
secretKeyRef:
name: postgresql-starcoin-yu
name: postgresql
key: password
- name: DB_SCHEMA
value: "barnard"
Expand Down
40 changes: 23 additions & 17 deletions kube/indexer/stc-scan/stcscan-cmd-handle-main-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: starcoin-indexer-cmd-handle-deployment
name: starcoin-indexer-stcscan-cmd-handle-deployment
namespace: starcoin-main
labels:
app: starcoin-indexer-cmd-handle
app: starcoin-indexer-stcscan-cmd-handle
spec:
replicas: 1
selector:
matchLabels:
app: starcoin-indexer-cmd-handle
app: starcoin-indexer-stcscan-cmd-handle
template:
metadata:
labels:
app: starcoin-indexer-cmd-handle
app: starcoin-indexer-stcscan-cmd-handle
spec:
containers:
- name: starcoin-indexer-cmd-handle
- name: starcoin-indexer-stcscan-cmd-handle
image: starcoin/starcoin_indexer:sha-ba00b10
ports:
- containerPort: 8300
Expand All @@ -31,31 +31,37 @@ spec:
value: "0"
- name: BULK_SIZE
value: "100"
- 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"
value: "elasticsearch.default.svc.cluster.local"
- name: STARCOIN_ES_PROTOCOL
value: "https"
value: "http"
- name: STARCOIN_ES_PORT
value: "443"
value: "9200"
- name: STARCOIN_ES_USER
value: elastic
valueFrom:
secretKeyRef:
name: elasticsearch
key: username
- name: STARCOIN_ES_PWD
valueFrom:
secretKeyRef:
name: elasticsearch
key: password
- name: SWAP_API_URL
value: "https://swap-api.starswap.xyz"
- name: SWAP_CONTRACT_ADDR
value: "0x8c109349c6bd91411d6bc962e080c4a3"
- name: DS_URL
value: "jdbc:postgresql://database-1.c0bz9kehdvnb.ap-northeast-1.rds.amazonaws.com/starcoin"
value: "jdbc:postgresql://postgres-service.default.svc.cluster.local/starcoin"
- name: DB_USER_NAME
value: "starcoin"
valueFrom:
secretKeyRef:
name: postgresql
key: username
- name: DB_PWD
valueFrom:
secretKeyRef:
name: postgresql-starcoin-yu
name: postgresql
key: password
- name: DB_SCHEMA
value: "main"
Expand Down
42 changes: 24 additions & 18 deletions kube/indexer/stc-scan/stcscan-halley-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: starcoin-indexer-deployment
name: starcoin-indexer-stcscan-deployment
namespace: starcoin-halley
labels:
app: starcoin-indexer
app: starcoin-indexer-stcscan
spec:
replicas: 1
selector:
matchLabels:
app: starcoin-indexer
app: starcoin-indexer-stcscan
template:
metadata:
labels:
app: starcoin-indexer
app: starcoin-indexer-stcscan
spec:
containers:
- name: starcoin-indexer
- name: starcoin-indexer-stcscan
image: starcoin/starcoin_indexer:halley_fix_db_1
ports:
- containerPort: 8300
Expand All @@ -29,33 +29,39 @@ spec:
value: "indexer,secondary,market_cap,txn_payload,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_URL
value: "elasticsearch.default.svc.cluster.local"
- name: STARCOIN_ES_PROTOCOL
value: "https"
value: "http"
- name: STARCOIN_ES_PORT
value: "443"
value: "9200"
- name: STARCOIN_ES_USER
value: elastic
valueFrom:
secretKeyRef:
name: elasticsearch
key: username
- name: STARCOIN_ES_PWD
valueFrom:
secretKeyRef:
name: elasticsearch
key: password
- 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"
value: "jdbc:postgresql://postgres-service.default.svc.cluster.local/starcoin"
- name: DB_USER_NAME
value: "starcoin"
valueFrom:
secretKeyRef:
name: postgresql
key: username
- name: DB_PWD
valueFrom:
secretKeyRef:
name: postgresql-starcoin-yu
name: postgresql
key: password
- name: DB_SCHEMA
value: "halley"
Expand Down
40 changes: 23 additions & 17 deletions kube/indexer/stc-scan/stcscan-main-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: starcoin-indexer-deployment
name: starcoin-indexer-stcscan-deployment
namespace: starcoin-main
labels:
app: starcoin-indexer
app: starcoin-indexer-stcscan
spec:
replicas: 1
selector:
matchLabels:
app: starcoin-indexer
app: starcoin-indexer-stcscan
template:
metadata:
labels:
app: starcoin-indexer
app: starcoin-indexer-stcscan
spec:
containers:
- name: starcoin-indexer
- name: starcoin-indexer-stcscan
image: starcoin/starcoin_indexer:sha-1223fc3
ports:
- containerPort: 8300
Expand All @@ -31,31 +31,37 @@ spec:
value: "0"
- name: BULK_SIZE
value: "100"
- 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"
value: "elasticsearch.default.svc.cluster.local"
- name: STARCOIN_ES_PROTOCOL
value: "https"
value: "http"
- name: STARCOIN_ES_PORT
value: "443"
value: "9200"
- name: STARCOIN_ES_USER
value: elastic
valueFrom:
secretKeyRef:
name: elasticsearch
key: username
- name: STARCOIN_ES_PWD
valueFrom:
secretKeyRef:
name: elasticsearch
key: password
- name: SWAP_API_URL
value: "https://swap-api.starswap.xyz"
- name: SWAP_CONTRACT_ADDR
value: "0x8c109349c6bd91411d6bc962e080c4a3"
- name: DS_URL
value: "jdbc:postgresql://database-1.c0bz9kehdvnb.ap-northeast-1.rds.amazonaws.com/starcoin"
value: "jdbc:postgresql://postgres-service.default.svc.cluster.local/starcoin"
- name: DB_USER_NAME
value: "starcoin"
valueFrom:
secretKeyRef:
name: postgresql
key: username
- name: DB_PWD
valueFrom:
secretKeyRef:
name: postgresql-starcoin-yu
name: postgresql
key: password
- name: DB_SCHEMA
value: "main"
Expand Down
40 changes: 23 additions & 17 deletions kube/indexer/stc-scan/stcscan-proxima-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: starcoin-indexer-deployment
name: starcoin-indexer-stcscan-deployment
namespace: starcoin-proxima
labels:
app: starcoin-indexer
app: starcoin-indexer-stcscan
spec:
replicas: 1
selector:
matchLabels:
app: starcoin-indexer
app: starcoin-indexer-stcscan
template:
metadata:
labels:
app: starcoin-indexer
app: starcoin-indexer-stcscan
spec:
containers:
- name: starcoin-indexer
- name: starcoin-indexer-stcscan
image: starcoin/starcoin_indexer:sha-1223fc3
ports:
- containerPort: 8300
Expand All @@ -29,33 +29,39 @@ spec:
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"
value: "elasticsearch.default.svc.cluster.local"
- name: TXN_OFFSET
value: "0"
- name: STARCOIN_ES_PROTOCOL
value: "https"
value: "http"
- name: STARCOIN_ES_PORT
value: "443"
value: "9200"
- name: STARCOIN_ES_USER
value: elastic
valueFrom:
secretKeyRef:
name: elasticsearch
key: username
- name: STARCOIN_ES_PWD
valueFrom:
secretKeyRef:
name: elasticsearch
key: password
- 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"
value: "jdbc:postgresql://postgres-service.default.svc.cluster.local/starcoin"
- name: DB_USER_NAME
value: "starcoin"
valueFrom:
secretKeyRef:
name: postgresql
key: username
- name: DB_PWD
valueFrom:
secretKeyRef:
name: postgresql-starcoin-yu
name: postgresql
key: password
- name: DB_SCHEMA
value: "proxima"
Expand Down
Loading

0 comments on commit 5c04432

Please sign in to comment.