From bfb8d3ae8ecb4fffa2efd21d52f48e4ecd86bed5 Mon Sep 17 00:00:00 2001 From: cahe Date: Thu, 14 Mar 2024 15:40:32 -0300 Subject: [PATCH] fix api response time --- kustomize/mycrd.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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: