提交 67fa6ff2 作者: 余乾开

feat(config):滚动升级

上级 cf9168ff
...@@ -4,6 +4,8 @@ metadata: ...@@ -4,6 +4,8 @@ metadata:
name: h5-deployment name: h5-deployment
namespace: default namespace: default
spec: spec:
minReadySeconds: 250
revisionHistoryLimit: 2
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
......
apiVersion: apps/v1
kind: Deployment
metadata:
name: h5-deployment
spec:
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
...@@ -8,6 +8,8 @@ commonLabels: ...@@ -8,6 +8,8 @@ commonLabels:
variant: dev variant: dev
commonAnnotations: commonAnnotations:
note: This is dev! note: This is dev!
patches:
- path: ./increase_replicas.yaml
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/h5 newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/h5
......
apiVersion: apps/v1
kind: Deployment
metadata:
name: h5-deployment
spec:
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
...@@ -8,6 +8,8 @@ commonLabels: ...@@ -8,6 +8,8 @@ commonLabels:
variant: prod variant: prod
commonAnnotations: commonAnnotations:
note: This is prod! note: This is prod!
patches:
- path: ./increase_replicas.yaml
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/h5 newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/h5
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论