You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/deploy_k8s/admin_cms/deployment.yaml

35 lines
789 B

3 years ago
---
apiVersion: apps/v1
3 years ago
kind: Deployment
3 years ago
metadata:
3 years ago
name: admin-cms-deployment
3 years ago
spec:
selector:
matchLabels:
3 years ago
app: admin-cms # 选择这个指定标签执行
3 years ago
replicas: 2 # 运行pod数量
3 years ago
template:
metadata:
labels:
3 years ago
app: admin-cms # 标签
3 years ago
spec:
containers:
3 years ago
- name: admin-cms
image: openim/admin_cms:v2.0.10
3 years ago
ports:
3 years ago
- containerPort: 10200
3 years ago
volumeMounts:
3 years ago
- name: config
mountPath: /Open-IM-Server/config
3 years ago
readOnly: true
2 years ago
env:
- name: CONFIG_NAME
value: "/Open-IM-Server"
3 years ago
volumes:
3 years ago
- name: config
configMap:
name: config
strategy: #更新策略
type: RollingUpdate # 滚动更新