@@ -18,7 +18,7 @@ spec: | |||||
spec: | spec: | ||||
containers: | containers: | ||||
- name: connect | - 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 | imagePullPolicy: Always | ||||
ports: | ports: | ||||
- containerPort: 8000 | - containerPort: 8000 | ||||
@@ -42,6 +42,7 @@ apiVersion: v1 | |||||
kind: Service | kind: Service | ||||
metadata: | metadata: | ||||
name: connect | name: connect | ||||
namespace: gim | |||||
labels: | labels: | ||||
app: connect # 只有设置label,才能被服务发现找到 | app: connect # 只有设置label,才能被服务发现找到 | ||||
spec: | spec: | ||||
@@ -3,6 +3,7 @@ apiVersion: apps/v1 | |||||
kind: Deployment | kind: Deployment | ||||
metadata: | metadata: | ||||
name: logic-deployment | name: logic-deployment | ||||
namespace: gim | |||||
labels: | labels: | ||||
app: logic | app: logic | ||||
spec: | spec: | ||||
@@ -17,7 +18,7 @@ spec: | |||||
spec: | spec: | ||||
containers: | containers: | ||||
- name: logic | - 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中需要指定,不然会强制到远程拉取镜像,导致部署失败 | imagePullPolicy: Always # 在kind中需要指定,不然会强制到远程拉取镜像,导致部署失败 | ||||
ports: | ports: | ||||
- containerPort: 8001 | - containerPort: 8001 | ||||
@@ -39,6 +40,7 @@ apiVersion: v1 | |||||
kind: Service | kind: Service | ||||
metadata: | metadata: | ||||
name: logic | name: logic | ||||
namespace: gim | |||||
labels: | labels: | ||||
app: logic # 只有设置label,才能被服务发现找到 | app: logic # 只有设置label,才能被服务发现找到 | ||||
spec: | spec: | ||||
@@ -22,7 +22,7 @@ const ( | |||||
) | ) | ||||
var ( | var ( | ||||
NameSpace string = "default" | |||||
NameSpace string = "gim" | |||||
MySQL string | MySQL string | ||||
RedisIP string | RedisIP string | ||||
RedisPassword string | RedisPassword string | ||||