diff --git a/chart/templates/server/connect.yaml b/chart/templates/server/connect.yaml index 1df8293..0cc7dad 100644 --- a/chart/templates/server/connect.yaml +++ b/chart/templates/server/connect.yaml @@ -18,7 +18,7 @@ spec: spec: containers: - name: connect - image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/zyos-logic:202209018-02' + image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/zyos-gim-connect:202209018-01' imagePullPolicy: Always ports: - containerPort: 8000 @@ -42,6 +42,7 @@ apiVersion: v1 kind: Service metadata: name: connect + namespace: gim labels: app: connect # 只有设置label,才能被服务发现找到 spec: diff --git a/chart/templates/server/logic.yaml b/chart/templates/server/logic.yaml index 1be262a..a921263 100644 --- a/chart/templates/server/logic.yaml +++ b/chart/templates/server/logic.yaml @@ -3,6 +3,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: logic-deployment + namespace: gim labels: app: logic spec: @@ -17,7 +18,7 @@ spec: spec: containers: - name: logic - image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/zyos-logic:202209018-02' + image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/zyos-gim-logic:202209018-01' imagePullPolicy: Always # 在kind中需要指定,不然会强制到远程拉取镜像,导致部署失败 ports: - containerPort: 8001 @@ -39,6 +40,7 @@ apiVersion: v1 kind: Service metadata: name: logic + namespace: gim labels: app: logic # 只有设置label,才能被服务发现找到 spec: diff --git a/config/config.go b/config/config.go index 0bb5a85..4b18c7e 100644 --- a/config/config.go +++ b/config/config.go @@ -22,7 +22,7 @@ const ( ) var ( - NameSpace string = "default" + NameSpace string = "gim" MySQL string RedisIP string RedisPassword string