Skip to content

Commit

Permalink
[Deployment] Fixed DigitalOcean deploy error
Browse files Browse the repository at this point in the history
  • Loading branch information
welbon committed Jul 6, 2024
1 parent 0f18c96 commit 42e7009
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
10 changes: 5 additions & 5 deletions kube/indexer/dag/dag-vega-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: starcoin-dag-indexer-deployment
name: starcoin-indexer-dag-deployment
namespace: starcoin-vega
labels:
app: starcoin-dag-indexer
app: starcoin-indexer-dag
spec:
replicas: 1
selector:
matchLabels:
app: starcoin-dag-indexer
app: starcoin-indexer-dag
template:
metadata:
labels:
app: starcoin-dag-indexer
app: starcoin-indexer-dag
spec:
containers:
- name: starcoin-dag-indexer
- name: starcoin-indexer-dag
image: starcoin/starcoin_indexer:dag_inspector_vega_6
ports:
- containerPort: 8300
Expand Down
18 changes: 15 additions & 3 deletions kube/scan-api/scan-api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,17 @@ spec:
- name: STARCOIN_ES_PORT
value: "9200"
- name: STARCOIN_ES_USER
value: elastic
- name: STARCOIN_ES_INDEX_VERSION
value: ".0727"
valueFrom:
secretKeyRef:
name: elasticsearch
key: username
- name: STARCOIN_ES_PWD
valueFrom:
secretKeyRef:
name: elasticsearch
key: password
- name: STARCOIN_ES_INDEX_VERSION
value: ".0727"
- name: DS_URL
value: "jdbc:postgresql://postgres-service.default.svc.cluster.local/starcoin"
- name: DB_USER_NAME
Expand All @@ -51,4 +54,13 @@ spec:
secretKeyRef:
name: postgresql
key: password
# Maybe useless variables
- name: MAIN_DS_URL
value: "jdbc:postgresql://postgres-service.default.svc.cluster.local/starcoin?currentSchema=main"
- name: BARNARD_DS_URL
value: "jdbc:postgresql://postgres-service.default.svc.cluster.local/starcoin?currentSchema=barnard"
- name: HALLEY_DS_URL
value: "jdbc:postgresql://postgres-service.default.svc.cluster.local/starcoin?currentSchema=halley"
- name: STARCOIN_USER_DS_URL
value: "jdbc:postgresql://postgres-service.default.svc.cluster.local/starcoin?currentSchema=starcoin_user"

0 comments on commit 42e7009

Please sign in to comment.