diff --git a/kustomize/mycrd.yaml b/kustomize/mycrd.yaml index 301429a..228febb 100644 --- a/kustomize/mycrd.yaml +++ b/kustomize/mycrd.yaml @@ -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: