提交 67fa6ff2 作者: 余乾开

feat(config):滚动升级

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