diff --git a/kustomize/mycrd.yaml b/kustomize/mycrd.yaml index a7c8333..bf940f1 100644 --- a/kustomize/mycrd.yaml +++ b/kustomize/mycrd.yaml @@ -30,6 +30,18 @@ kind: Rollout metadata: name: 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} selector: matchLabels: app: python-deployment @@ -38,18 +50,6 @@ 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: