From 33c58ce2aca0d8909cd717db79c19cddb1cc501e Mon Sep 17 00:00:00 2001 From: dengbiao Date: Thu, 21 Nov 2024 12:10:39 +0800 Subject: [PATCH] update --- chart/templates/new_role/cluster_role.yaml | 4 ++-- chart/templates/server/business.yaml | 6 +++--- config/config.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/chart/templates/new_role/cluster_role.yaml b/chart/templates/new_role/cluster_role.yaml index 7047542..d388c79 100644 --- a/chart/templates/new_role/cluster_role.yaml +++ b/chart/templates/new_role/cluster_role.yaml @@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: pod-role - namespace: egg_im + namespace: egg-im rules: - apiGroups: - "" @@ -41,4 +41,4 @@ roleRef: subjects: - kind: ServiceAccount name: default - namespace: egg_im + namespace: egg-im diff --git a/chart/templates/server/business.yaml b/chart/templates/server/business.yaml index a0e2444..a8a2799 100644 --- a/chart/templates/server/business.yaml +++ b/chart/templates/server/business.yaml @@ -3,7 +3,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: business-deployment - namespace: egg_im + namespace: egg-im labels: app: business spec: @@ -18,7 +18,7 @@ spec: spec: containers: - name: business - image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/zyos-egg_im-business:20221128-01' + image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/egg-im-busness:0.0.1' imagePullPolicy: Always ports: - containerPort: 8000 @@ -40,7 +40,7 @@ apiVersion: v1 kind: Service metadata: name: business - namespace: egg_im + namespace: egg-im labels: app: business # 只有设置label,才能被服务发现找到 spec: diff --git a/config/config.go b/config/config.go index a7f6736..5d54f19 100644 --- a/config/config.go +++ b/config/config.go @@ -20,7 +20,7 @@ const ( ) var ( - NameSpace string = "egg_im" + NameSpace string = "egg-im" MySQL string = "root:Fnuo123com@@tcp(119.23.182.117:3306)/egg_im?charset=utf8&parseTime=true&loc=Local" RedisIP string = "120.24.28.6:32572" RedisPassword string = ""