Browse Source

update

master
dengbiao 1 week ago
parent
commit
33c58ce2ac
3 changed files with 6 additions and 6 deletions
  1. +2
    -2
      chart/templates/new_role/cluster_role.yaml
  2. +3
    -3
      chart/templates/server/business.yaml
  3. +1
    -1
      config/config.go

+ 2
- 2
chart/templates/new_role/cluster_role.yaml View File

@@ -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

+ 3
- 3
chart/templates/server/business.yaml View File

@@ -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:


+ 1
- 1
config/config.go View File

@@ -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 = ""


Loading…
Cancel
Save