From 42e7009bb2bdf44d9a4f792e67fd1ec8ea7dbe82 Mon Sep 17 00:00:00 2001 From: Bob Ong Date: Sat, 6 Jul 2024 15:43:09 +0800 Subject: [PATCH] [Deployment] Fixed DigitalOcean deploy error --- kube/indexer/dag/dag-vega-deployment.yaml | 10 +++++----- kube/scan-api/scan-api-deployment.yaml | 18 +++++++++++++++--- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/kube/indexer/dag/dag-vega-deployment.yaml b/kube/indexer/dag/dag-vega-deployment.yaml index 30fae5e..e74a184 100644 --- a/kube/indexer/dag/dag-vega-deployment.yaml +++ b/kube/indexer/dag/dag-vega-deployment.yaml @@ -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 diff --git a/kube/scan-api/scan-api-deployment.yaml b/kube/scan-api/scan-api-deployment.yaml index c48fc99..950589e 100644 --- a/kube/scan-api/scan-api-deployment.yaml +++ b/kube/scan-api/scan-api-deployment.yaml @@ -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 @@ -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"