diff --git a/kube/indexer/swap/swap-txns-main-deployment.yaml b/kube/indexer/swap/swap-txns-main-deployment.yaml index 6b29008..14af86a 100644 --- a/kube/indexer/swap/swap-txns-main-deployment.yaml +++ b/kube/indexer/swap/swap-txns-main-deployment.yaml @@ -31,11 +31,6 @@ 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: "elasticsearch.default.svc.cluster.local" - name: STARCOIN_ES_PROTOCOL @@ -43,7 +38,15 @@ spec: - 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.starswap.xyz" - name: SWAP_CONTRACT_ADDR diff --git a/kube/subscribe/starscan-sub-main-deployment.yaml b/kube/subscribe/starscan-sub-main-deployment.yaml index 0a7c7b2..fed8735 100644 --- a/kube/subscribe/starscan-sub-main-deployment.yaml +++ b/kube/subscribe/starscan-sub-main-deployment.yaml @@ -27,11 +27,6 @@ spec: value: "main.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: "elasticsearch.default.svc.cluster.local" - name: STARCOIN_ES_PROTOCOL @@ -39,7 +34,15 @@ spec: - 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