mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-01 07:35:58 +08:00
k8s_deployment
This commit is contained in:
committed by
Xinwei Xiong(cubxxw-openim)
parent
270034204c
commit
c4d3f87bf1
@@ -2,22 +2,22 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: api-deployment
|
||||
name: admin-cms-deployment
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: admin_cms # 选择这个指定标签执行
|
||||
app: admin-cms # 选择这个指定标签执行
|
||||
replicas: 2 # 运行pod数量
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: api # 标签
|
||||
app: admin-cms # 标签
|
||||
spec:
|
||||
containers:
|
||||
- name: api
|
||||
image: openim/api:v2.0.10
|
||||
- name: admin-cms
|
||||
image: openim/admin_cms:v2.0.10
|
||||
ports:
|
||||
- containerPort: 10002
|
||||
- containerPort: 10200
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /Open-IM-Server/config
|
||||
|
||||
Reference in New Issue
Block a user