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

33 lines
776 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 # 选择这个指定标签执行
2 years ago
replicas: 1 # 运行pod数量
3 years ago
template:
metadata:
labels:
3 years ago
app: admin-cms # 标签
3 years ago
spec:
containers:
3 years ago
- name: admin-cms
2 years ago
image: openim/admin_cms:v2.2.0
2 years ago
# imagePullPolicy: Always #每次启动都重新拉取镜像
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
volumes:
3 years ago
- name: config
configMap:
2 years ago
name: openim-config
3 years ago
strategy: #更新策略
type: RollingUpdate # 滚动更新