提交 f56e341b 作者: 余乾开

feat(config):Kustomization

上级 f4e2b171
...@@ -4,6 +4,8 @@ metadata: ...@@ -4,6 +4,8 @@ metadata:
name: payment-deployment name: payment-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: payment-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
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
......
...@@ -3,4 +3,9 @@ kind: Deployment ...@@ -3,4 +3,9 @@ kind: Deployment
metadata: metadata:
name: payment-deployment name: payment-deployment
spec: spec:
replicas: 1 replicas: 2
\ No newline at end of file strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论