From fb24bedfdc309598b4f5861bb0ee38e7fb7f6b5f Mon Sep 17 00:00:00 2001 From: AKostarev Date: Thu, 18 Jul 2024 07:06:47 +0000 Subject: [PATCH] Add patches to podinfo-kustomization.yaml for scaling to 3 --- clusters/my-cluster/podinfo-kustomization.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/clusters/my-cluster/podinfo-kustomization.yaml b/clusters/my-cluster/podinfo-kustomization.yaml index 07e30d6..2837ba0 100644 --- a/clusters/my-cluster/podinfo-kustomization.yaml +++ b/clusters/my-cluster/podinfo-kustomization.yaml @@ -15,3 +15,15 @@ spec: targetNamespace: default timeout: 3m0s wait: true + patches: + - patch: |- + apiVersion: autoscaling/v2 + kind: HorizontalPodAutoscaler + metadata: + name: podinfo + spec: + minReplicas: 3 + target: + name: podinfo + kind: HorizontalPodAutoscaler +