Files
open-im-server/deploy_k8s/admin_cms/deployment.yaml
T

44 lines
1.1 KiB
YAML
Raw Normal View History

2022-05-19 17:50:04 +08:00
---
apiVersion: apps/v1
2022-05-20 19:43:28 +08:00
kind: Deployment
2022-05-19 17:50:04 +08:00
metadata:
2022-05-23 00:55:56 +08:00
name: admin-cms-deployment
2022-05-19 17:50:04 +08:00
spec:
selector:
matchLabels:
2022-05-23 00:55:56 +08:00
app: admin-cms # 选择这个指定标签执行
2022-07-01 00:14:59 +08:00
replicas: 1 # 运行pod数量
2022-05-19 17:50:04 +08:00
template:
metadata:
labels:
2022-05-23 00:55:56 +08:00
app: admin-cms # 标签
2022-05-19 17:50:04 +08:00
spec:
containers:
2022-05-23 00:55:56 +08:00
- name: admin-cms
2022-11-11 11:16:17 +08:00
image: openim/admin_cms:v2.3.4
2022-06-05 23:42:27 +08:00
# imagePullPolicy: Always #每次启动都重新拉取镜像
2022-05-19 17:50:04 +08:00
ports:
2022-05-23 00:55:56 +08:00
- containerPort: 10200
2022-05-19 17:50:04 +08:00
volumeMounts:
2022-05-20 19:43:28 +08:00
- name: config
mountPath: /Open-IM-Server/config
2022-05-19 17:50:04 +08:00
readOnly: true
2022-11-11 12:17:04 +08:00
- name: usualConfig
mountPath: /Open-IM-Server/config
readOnly: true
2022-08-30 16:30:08 +08:00
env:
- name: CONFIG_NAME
2022-11-11 12:17:04 +08:00
value: "/Open-IM-Server"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
2022-05-19 17:50:04 +08:00
volumes:
2022-05-20 19:43:28 +08:00
- name: config
configMap:
2022-07-01 00:14:59 +08:00
name: openim-config
2022-11-11 12:17:04 +08:00
- name: usualConfig
configMap:
name: openim-usualConfig
2022-05-20 19:43:28 +08:00
strategy: #更新策略
type: RollingUpdate # 滚动更新