提交 a66259b9 作者: 余乾开

Merge branch 'develop'

...@@ -4,6 +4,8 @@ metadata: ...@@ -4,6 +4,8 @@ metadata:
name: cms-deployment name: cms-deployment
namespace: default namespace: default
spec: spec:
minReadySeconds: 240
revisionHistoryLimit: 2
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
...@@ -18,7 +20,7 @@ spec: ...@@ -18,7 +20,7 @@ spec:
image: REGISTRY/NAMESPACE/IMAGE:TAG image: REGISTRY/NAMESPACE/IMAGE:TAG
resources: resources:
limits: limits:
memory: 4096Mi memory: 1024Mi
cpu: 100m cpu: 100m
ports: ports:
- containerPort: 35150 - containerPort: 35150
......
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: ...@@ -9,6 +9,7 @@ commonLabels:
commonAnnotations: commonAnnotations:
note: This is dev! note: This is dev!
patches: patches:
- path: ./increase_replicas.yaml
- path: ./configMap.yaml - path: ./configMap.yaml
- path: ./service-patch.yaml - path: ./service-patch.yaml
target: target:
...@@ -17,4 +18,4 @@ patches: ...@@ -17,4 +18,4 @@ patches:
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/cms newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/cms
newTag: 1d021790d2877cb9cc492d3c6acdc68db0ed5ff2 newTag: b90d96ef7a2c68fe49e89e0462cba4d37baf7716
...@@ -3,7 +3,12 @@ kind: Deployment ...@@ -3,7 +3,12 @@ kind: Deployment
metadata: metadata:
name: cms-deployment name: cms-deployment
spec: spec:
replicas: 1 replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
# template: # template:
# spec: # spec:
# nodeName: master # nodeName: master
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论