From ea6b9f6f7a763ed96fb85f50192e7522712ffa49 Mon Sep 17 00:00:00 2001 From: yourmoonlight Date: Mon, 5 Dec 2022 19:17:33 +0800 Subject: [PATCH] new db url and ingress file --- kube/barnard_dao-api-deployment.yaml | 2 +- kube/dao-api-deployment.yaml | 2 +- kube/ingress.yaml | 16 +++++++++++----- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/kube/barnard_dao-api-deployment.yaml b/kube/barnard_dao-api-deployment.yaml index b17af66..a5cbae5 100644 --- a/kube/barnard_dao-api-deployment.yaml +++ b/kube/barnard_dao-api-deployment.yaml @@ -25,7 +25,7 @@ spec: - name: FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS value: "true" - name: STARCOIN_MYSQL_URL - value: "jdbc:mysql://starcoin-db-2.c0bz9kehdvnb.ap-northeast-1.rds.amazonaws.com:3306/dao_api_dev?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC" + value: "jdbc:mysql://starcoin-db-2.czftx6muneg7.ap-northeast-1.rds.amazonaws.com:3306/dao_api_dev?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC" - name: STARCOIN_MYSQL_USER value: "starcoin" - name: STARCOIN_MYSQL_PWD diff --git a/kube/dao-api-deployment.yaml b/kube/dao-api-deployment.yaml index 7a9561a..8cf47b3 100644 --- a/kube/dao-api-deployment.yaml +++ b/kube/dao-api-deployment.yaml @@ -25,7 +25,7 @@ spec: - name: FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS value: "true" - name: STARCOIN_MYSQL_URL - value: "jdbc:mysql://starcoin-db-2.c0bz9kehdvnb.ap-northeast-1.rds.amazonaws.com:3306/dao_api?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC" + value: "jdbc:mysql://starcoin-db-2.czftx6muneg7.ap-northeast-1.rds.amazonaws.com:3306/dao_api?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC" - name: STARCOIN_MYSQL_USER value: "starcoin" - name: STARCOIN_MYSQL_PWD diff --git a/kube/ingress.yaml b/kube/ingress.yaml index 7adad1d..b233eb8 100644 --- a/kube/ingress.yaml +++ b/kube/ingress.yaml @@ -1,4 +1,4 @@ -apiVersion: extensions/v1beta1 +apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: "dao-api-ingress" @@ -18,13 +18,19 @@ spec: # serviceName: "dao-api-dev" # servicePort: 80 - path: /main/* + pathType: ImplementationSpecific backend: - serviceName: "dao-api" - servicePort: 80 + service: + name: "dao-api" + port: + number: 80 - path: /barnard/* + pathType: ImplementationSpecific backend: - serviceName: "dao-api-barnard" - servicePort: 80 + service: + name: "dao-api-barnard" + port: + number: 80 # - path: /proxima/* # backend: # serviceName: "dao-api-proxima"