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