1 changed files with
13 additions and
1 deletions
|
|
|
|
@ -26,7 +26,7 @@ spec:
|
|
|
|
|
memory: 200Mi
|
|
|
|
|
---
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
kind: Rollout
|
|
|
|
|
metadata:
|
|
|
|
|
name: python-deployment
|
|
|
|
|
spec:
|
|
|
|
|
@ -38,6 +38,18 @@ spec:
|
|
|
|
|
labels:
|
|
|
|
|
app: python-deployment
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 5
|
|
|
|
|
strategy:
|
|
|
|
|
canary:
|
|
|
|
|
steps:
|
|
|
|
|
- setWeight: 20
|
|
|
|
|
- pause: {}
|
|
|
|
|
- setWeight: 40
|
|
|
|
|
- pause: {duration: 10}
|
|
|
|
|
- setWeight: 60
|
|
|
|
|
- pause: {duration: 10}
|
|
|
|
|
- setWeight: 80
|
|
|
|
|
- pause: {duration: 10}
|
|
|
|
|
containers:
|
|
|
|
|
- name: app
|
|
|
|
|
args:
|
|
|
|
|
|