提交 990e41d9 作者: 余乾开

feat(config):滚动升级

上级 5a3a2d79
......@@ -4,6 +4,8 @@ metadata:
name: cms-deployment
namespace: default
spec:
minReadySeconds: 240
revisonHistoryLimit: 2
replicas: 1
selector:
matchLabels:
......
apiVersion: apps/v1
kind: Deployment
metadata:
name: cms-deployment
spec:
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
\ No newline at end of file
......@@ -9,6 +9,7 @@ commonLabels:
commonAnnotations:
note: This is dev!
patches:
- path: ./increase_replicas.yaml
- path: ./configMap.yaml
- path: ./service-patch.yaml
target:
......
......@@ -3,7 +3,12 @@ kind: Deployment
metadata:
name: cms-deployment
spec:
replicas: 1
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
# template:
# spec:
# nodeName: master
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论