deploy_k8s

This commit is contained in:
wangchuxiao
2022-07-01 00:14:59 +08:00
parent 134087c672
commit 8bedfca646
38 changed files with 111 additions and 93 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: admin-cms # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: admin-cms
image: openim/admin_cms:v2.0.10k
image: openim/admin_cms:v2.1.0
# imagePullPolicy: Always #每次启动都重新拉取镜像
ports:
- containerPort: 10200
@@ -26,7 +26,7 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新