From 5c044329600dfb8388cad5b80b2434deaf1d4453 Mon Sep 17 00:00:00 2001 From: Bob Ong Date: Mon, 8 Jul 2024 12:29:30 +0800 Subject: [PATCH] [Deployment] Fixed some configs --- .../stc-scan/stcscan-barnard-deployment.yaml | 40 ++++++++++-------- .../stcscan-cmd-handle-main-deployment.yaml | 40 ++++++++++-------- .../stc-scan/stcscan-halley-deployment.yaml | 42 +++++++++++-------- .../stc-scan/stcscan-main-deployment.yaml | 40 ++++++++++-------- .../stc-scan/stcscan-proxima-deployment.yaml | 40 ++++++++++-------- .../stcscan-repair-barnard-deployment.yaml | 42 +++++++++++-------- .../stcscan-repair-halley-deployment.yaml | 40 ++++++++++-------- .../stcscan-repair-main-deployment.yaml | 40 ++++++++++-------- .../stc-scan/stcscan-txn-main-deployment.yaml | 40 ++++++++++-------- .../swap/swap-info-main-deployment.yaml | 28 ++++++++----- .../swap/swap-stat-main-deployment.yaml | 8 ++-- .../swap/swap-txns-main-deployment.yaml | 8 ++-- .../starscan-sub-barnard-deployment-ali.yaml | 26 +++++++----- .../starscan-sub-barnard-deployment.yaml | 30 +++++++------ .../starscan-sub-halley-deployment.yaml | 27 ++++++------ .../starscan-sub-main-deployment-ali.yaml | 26 +++++++----- .../starscan-sub-main-deployment.yaml | 15 ++++--- .../starscan-sub-proxima-deployment.yaml | 30 +++++++------ 18 files changed, 326 insertions(+), 236 deletions(-) diff --git a/kube/indexer/stc-scan/stcscan-barnard-deployment.yaml b/kube/indexer/stc-scan/stcscan-barnard-deployment.yaml index b666aba..756cd38 100644 --- a/kube/indexer/stc-scan/stcscan-barnard-deployment.yaml +++ b/kube/indexer/stc-scan/stcscan-barnard-deployment.yaml @@ -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 @@ -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" diff --git a/kube/indexer/stc-scan/stcscan-cmd-handle-main-deployment.yaml b/kube/indexer/stc-scan/stcscan-cmd-handle-main-deployment.yaml index 6ea7a43..c4824fb 100644 --- a/kube/indexer/stc-scan/stcscan-cmd-handle-main-deployment.yaml +++ b/kube/indexer/stc-scan/stcscan-cmd-handle-main-deployment.yaml @@ -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 @@ -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" diff --git a/kube/indexer/stc-scan/stcscan-halley-deployment.yaml b/kube/indexer/stc-scan/stcscan-halley-deployment.yaml index 904fab7..7a035d6 100644 --- a/kube/indexer/stc-scan/stcscan-halley-deployment.yaml +++ b/kube/indexer/stc-scan/stcscan-halley-deployment.yaml @@ -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 @@ -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" diff --git a/kube/indexer/stc-scan/stcscan-main-deployment.yaml b/kube/indexer/stc-scan/stcscan-main-deployment.yaml index 5da5b23..c31d1ea 100644 --- a/kube/indexer/stc-scan/stcscan-main-deployment.yaml +++ b/kube/indexer/stc-scan/stcscan-main-deployment.yaml @@ -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 @@ -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" diff --git a/kube/indexer/stc-scan/stcscan-proxima-deployment.yaml b/kube/indexer/stc-scan/stcscan-proxima-deployment.yaml index bf5911c..13efaf4 100644 --- a/kube/indexer/stc-scan/stcscan-proxima-deployment.yaml +++ b/kube/indexer/stc-scan/stcscan-proxima-deployment.yaml @@ -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 @@ -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" diff --git a/kube/indexer/stc-scan/stcscan-repair-barnard-deployment.yaml b/kube/indexer/stc-scan/stcscan-repair-barnard-deployment.yaml index cd2e587..ab7975c 100644 --- a/kube/indexer/stc-scan/stcscan-repair-barnard-deployment.yaml +++ b/kube/indexer/stc-scan/stcscan-repair-barnard-deployment.yaml @@ -1,22 +1,22 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: starcoin-indexer-repair-deployment + name: starcoin-indexer-stcscan-repair-deployment namespace: starcoin-barnard labels: - app: starcoin-indexer-repair + app: starcoin-indexer-stcscan-repair spec: replicas: 1 selector: matchLabels: - app: starcoin-indexer-repair + app: starcoin-indexer-stcscan-repair template: metadata: labels: - app: starcoin-indexer-repair + app: starcoin-indexer-stcscan-repair spec: containers: - - name: starcoin-indexer-repair + - name: starcoin-indexer-stcscan-repair image: starcoin/starcoin_indexer:sha-6eb4945 ports: - containerPort: 8300 @@ -31,33 +31,39 @@ spec: value: "5000000" - 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.starcoin.org" - 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" - name: PROGRAM_ARGS - value: "auto_repair 16057420" + value: "auto_repair 16057420" \ No newline at end of file diff --git a/kube/indexer/stc-scan/stcscan-repair-halley-deployment.yaml b/kube/indexer/stc-scan/stcscan-repair-halley-deployment.yaml index f00aa76..f60d911 100644 --- a/kube/indexer/stc-scan/stcscan-repair-halley-deployment.yaml +++ b/kube/indexer/stc-scan/stcscan-repair-halley-deployment.yaml @@ -1,22 +1,22 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: starcoin-indexer-repair-deployment + name: starcoin-indexer-stcscan-repair-deployment namespace: starcoin-halley labels: - app: starcoin-indexer-repair + app: starcoin-indexer-stcscan-repair spec: replicas: 1 selector: matchLabels: - app: starcoin-indexer-repair + app: starcoin-indexer-stcscan-repair template: metadata: labels: - app: starcoin-indexer-repair + app: starcoin-indexer-stcscan-repair spec: containers: - - name: starcoin-indexer-repair + - name: starcoin-indexer-stcscan-repair image: starcoin/starcoin_indexer:halley_fix_db_1 ports: - containerPort: 8300 @@ -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: "halley" diff --git a/kube/indexer/stc-scan/stcscan-repair-main-deployment.yaml b/kube/indexer/stc-scan/stcscan-repair-main-deployment.yaml index b687e50..dbc44a4 100644 --- a/kube/indexer/stc-scan/stcscan-repair-main-deployment.yaml +++ b/kube/indexer/stc-scan/stcscan-repair-main-deployment.yaml @@ -1,22 +1,22 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: starcoin-indexer-repair-deployment + name: starcoin-indexer-stcscan-repair-deployment namespace: starcoin-main labels: - app: starcoin-indexer-repair + app: starcoin-indexer-stcscan-repair spec: replicas: 1 selector: matchLabels: - app: starcoin-indexer-repair + app: starcoin-indexer-stcscan-repair template: metadata: labels: - app: starcoin-indexer-repair + app: starcoin-indexer-stcscan-repair spec: containers: - - name: starcoin-indexer-repair + - name: starcoin-indexer-stcscan-repair image: starcoin/starcoin_indexer:sha-1223fc3 ports: - containerPort: 8300 @@ -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" diff --git a/kube/indexer/stc-scan/stcscan-txn-main-deployment.yaml b/kube/indexer/stc-scan/stcscan-txn-main-deployment.yaml index 48fd2ba..dd4bc9c 100644 --- a/kube/indexer/stc-scan/stcscan-txn-main-deployment.yaml +++ b/kube/indexer/stc-scan/stcscan-txn-main-deployment.yaml @@ -1,22 +1,22 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: starcoin-indexer-txn-deployment + name: starcoin-indexer-stcscan-txn-deployment namespace: starcoin-main labels: - app: starcoin-indexer-txn + app: starcoin-indexer-stcscan-txn spec: replicas: 1 selector: matchLabels: - app: starcoin-indexer-txn + app: starcoin-indexer-stcscan-txn template: metadata: labels: - app: starcoin-indexer-txn + app: starcoin-indexer-stcscan-txn spec: containers: - - name: starcoin-indexer-txn + - name: starcoin-indexer-stcscan-txn image: starcoin/starcoin_indexer:sha-ba00b10 ports: - containerPort: 8300 @@ -31,31 +31,37 @@ spec: value: "5217755" - 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" diff --git a/kube/indexer/swap/swap-info-main-deployment.yaml b/kube/indexer/swap/swap-info-main-deployment.yaml index 320d8f4..f1df85e 100644 --- a/kube/indexer/swap/swap-info-main-deployment.yaml +++ b/kube/indexer/swap/swap-info-main-deployment.yaml @@ -29,17 +29,22 @@ spec: value: "swap_stats,price_hour,price_stat,swap_pool_fee_stat" - name: TXN_OFFSET value: "0" + - name: STARCOIN_ES_URL + value: "elasticsearch.default.svc.cluster.local" + - name: STARCOIN_ES_PROTOCOL + value: "http" + - name: STARCOIN_ES_PORT + value: "9200" + - name: STARCOIN_ES_USER + valueFrom: + secretKeyRef: + name: elasticsearch + key: username - name: STARCOIN_ES_PWD valueFrom: secretKeyRef: - name: elasticsearch-pw-elastic + name: elasticsearch key: password - - name: STARCOIN_ES_URL - value: "search-starcoin-es2-47avtmhexhbg7qtynzebcnnu64.ap-northeast-1.es.amazonaws.com" - - name: STARCOIN_ES_PROTOCOL - value: "https" - - name: STARCOIN_ES_PORT - value: "443" - name: BULK_SIZE value: "100" - name: SWAP_API_URL @@ -47,13 +52,16 @@ spec: - 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" diff --git a/kube/indexer/swap/swap-stat-main-deployment.yaml b/kube/indexer/swap/swap-stat-main-deployment.yaml index 3d920b8..85f7a2a 100644 --- a/kube/indexer/swap/swap-stat-main-deployment.yaml +++ b/kube/indexer/swap/swap-stat-main-deployment.yaml @@ -37,11 +37,11 @@ spec: 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 - name: SWAP_API_URL @@ -49,7 +49,7 @@ spec: - 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" - name: DB_PWD diff --git a/kube/indexer/swap/swap-txns-main-deployment.yaml b/kube/indexer/swap/swap-txns-main-deployment.yaml index dde80d6..67c4346 100644 --- a/kube/indexer/swap/swap-txns-main-deployment.yaml +++ b/kube/indexer/swap/swap-txns-main-deployment.yaml @@ -37,11 +37,11 @@ spec: 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 - name: SWAP_API_URL @@ -49,7 +49,7 @@ spec: - 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" - name: DB_PWD diff --git a/kube/subscribe/starscan-sub-barnard-deployment-ali.yaml b/kube/subscribe/starscan-sub-barnard-deployment-ali.yaml index 9a91da8..7a9c1d9 100644 --- a/kube/subscribe/starscan-sub-barnard-deployment-ali.yaml +++ b/kube/subscribe/starscan-sub-barnard-deployment-ali.yaml @@ -27,31 +27,37 @@ spec: value: "barnard" - name: BG_TASK_JOBS value: "clean_pending_txn" - - name: STARCOIN_ES_PWD - valueFrom: - secretKeyRef: - name: elasticsearch-pw-elastic - key: password - name: STARCOIN_ES_URL - value: "123.57.40.36" + value: "elasticsearch.default.svc.cluster.local" - name: STARCOIN_ES_PROTOCOL value: "http" - name: STARCOIN_ES_PORT 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.starcoin.org" - name: SWAP_CONTRACT_ADDR value: "" - name: DS_URL - value: "jdbc:postgresql://123.57.40.36:8432/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-pw-starcoin + name: postgresql key: password - name: PROGRAM_ARGS value: "subscribe" diff --git a/kube/subscribe/starscan-sub-barnard-deployment.yaml b/kube/subscribe/starscan-sub-barnard-deployment.yaml index 9625dd4..a68d943 100644 --- a/kube/subscribe/starscan-sub-barnard-deployment.yaml +++ b/kube/subscribe/starscan-sub-barnard-deployment.yaml @@ -27,31 +27,37 @@ spec: value: "barnard.0727" - name: BG_TASK_JOBS value: "clean_pending_txn" - - 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.starcoin.org" - name: SWAP_CONTRACT_ADDR value: "" - name: DS_URL - value: "jdbc:postgresql://scan-db.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: PROGRAM_ARGS value: "subscribe" diff --git a/kube/subscribe/starscan-sub-halley-deployment.yaml b/kube/subscribe/starscan-sub-halley-deployment.yaml index 672ef7f..8ad3221 100644 --- a/kube/subscribe/starscan-sub-halley-deployment.yaml +++ b/kube/subscribe/starscan-sub-halley-deployment.yaml @@ -27,36 +27,37 @@ spec: value: "halley.0727" - name: BG_TASK_JOBS value: "clean_pending_txn" - - 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-pw-elastic + name: elasticsearch key: password - name: SWAP_API_URL value: "https://swap-api.starcoin.org" - name: SWAP_CONTRACT_ADDR value: "" - name: DS_URL - value: "jdbc:postgresql://scan-db.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: PROGRAM_ARGS value: "subscribe" diff --git a/kube/subscribe/starscan-sub-main-deployment-ali.yaml b/kube/subscribe/starscan-sub-main-deployment-ali.yaml index b6c83ba..b74044f 100644 --- a/kube/subscribe/starscan-sub-main-deployment-ali.yaml +++ b/kube/subscribe/starscan-sub-main-deployment-ali.yaml @@ -27,31 +27,37 @@ spec: value: "main" - name: BG_TASK_JOBS value: "clean_pending_txn" - - name: STARCOIN_ES_PWD - valueFrom: - secretKeyRef: - name: elasticsearch-pw-elastic - key: password - name: STARCOIN_ES_URL - value: "123.57.40.36" + value: "elasticsearch.default.svc.cluster.local" - name: STARCOIN_ES_PROTOCOL value: "http" - name: STARCOIN_ES_PORT 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.starcoin.org" - name: SWAP_CONTRACT_ADDR value: "" - name: DS_URL - value: "jdbc:postgresql://123.57.40.36:8432/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-pw-starcoin + name: postgresql key: password - name: PROGRAM_ARGS value: "subscribe" diff --git a/kube/subscribe/starscan-sub-main-deployment.yaml b/kube/subscribe/starscan-sub-main-deployment.yaml index 6745106..0a7c7b2 100644 --- a/kube/subscribe/starscan-sub-main-deployment.yaml +++ b/kube/subscribe/starscan-sub-main-deployment.yaml @@ -33,11 +33,11 @@ spec: 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 - name: SWAP_API_URL @@ -45,13 +45,16 @@ spec: - name: SWAP_CONTRACT_ADDR value: "" - name: DS_URL - value: "jdbc:postgresql://scan-db.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: PROGRAM_ARGS value: "subscribe" diff --git a/kube/subscribe/starscan-sub-proxima-deployment.yaml b/kube/subscribe/starscan-sub-proxima-deployment.yaml index e8e71f5..b060b60 100644 --- a/kube/subscribe/starscan-sub-proxima-deployment.yaml +++ b/kube/subscribe/starscan-sub-proxima-deployment.yaml @@ -27,31 +27,37 @@ spec: value: "proxima.0727" - name: BG_TASK_JOBS value: "clean_pending_txn" - - 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.starcoin.org" - name: SWAP_CONTRACT_ADDR value: "" - name: DS_URL - value: "jdbc:postgresql://scan-db.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: PROGRAM_ARGS value: "subscribe"