k8s_deploy

This commit is contained in:
wangchuxiao 2022-05-19 19:58:46 +08:00
parent e444a52b6a
commit 6fd84dba8f

View File

@ -14,18 +14,18 @@ spec:
app: api # 标签 app: api # 标签
spec: spec:
containers: containers:
- name: api - name: api
image: openim/api:2.0.10 image: openim/api:2.0.10
ports: ports:
- containerPort: 10002 - containerPort: 10002
volumeMounts: volumeMounts:
- name: config
mountPath: /Open-IM-Server/config/config.yaml
subPath: config.yaml
volumes:
- name: config - name: config
configMap: mountPath: /Open-IM-Server/config/config.yaml
name: myconfigmap subPath: config.yaml
volumes:
- name: config
configMap:
name: myconfigmap
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新
--- ---