From 8b17b8e4a84c72ee69fa881a0759c0d2f8b2bbbb Mon Sep 17 00:00:00 2001 From: RQ Date: Tue, 21 May 2024 23:26:33 +0800 Subject: [PATCH 1/2] [feat]: update deployment config --- deployments/configmap.yaml | 3 ++- deployments/deployment.yaml | 2 +- script/dockerbuild.sh | 0 3 files changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 script/dockerbuild.sh diff --git a/deployments/configmap.yaml b/deployments/configmap.yaml index 4708a9e..7c3fc82 100644 --- a/deployments/configmap.yaml +++ b/deployments/configmap.yaml @@ -5,5 +5,6 @@ metadata: data: config.json: | { - "ENV": "test" + "ENV": "test", + "ETHJSONRPCURL": "${ETHJSONRPCURL}" } diff --git a/deployments/deployment.yaml b/deployments/deployment.yaml index 12047d8..71da5a6 100644 --- a/deployments/deployment.yaml +++ b/deployments/deployment.yaml @@ -19,7 +19,7 @@ spec: command: - /app/bootstrap.sh - --conf=/app/config/config.json - image: registry.digitalocean.com/francisco/token-gateway:20240521213407 + image: registry.digitalocean.com/francisco/token-gateway:20240521231755 resources: {} ports: - containerPort: 8080 diff --git a/script/dockerbuild.sh b/script/dockerbuild.sh old mode 100644 new mode 100755 From 0e7dc7f8002d3cd6dfafb90d94e18405dfbe9081 Mon Sep 17 00:00:00 2001 From: RQ Date: Wed, 22 May 2024 00:01:27 +0800 Subject: [PATCH 2/2] [feat]: update ingress config --- deployments/token-gateway-ingress.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deployments/token-gateway-ingress.yaml b/deployments/token-gateway-ingress.yaml index 32ebc2b..7b4296a 100644 --- a/deployments/token-gateway-ingress.yaml +++ b/deployments/token-gateway-ingress.yaml @@ -8,6 +8,13 @@ spec: - host: cxlinks.us http: paths: + - path: /v1 + pathType: Prefix + backend: + service: + name: coin-gateway-svc + port: + number: 8080 - path: / pathType: Prefix backend: