From 4f19bbb8636d334b43608fb457c0927c6127c664 Mon Sep 17 00:00:00 2001 From: Antony Natale Date: Mon, 28 Oct 2024 09:18:25 -0400 Subject: [PATCH] adds pdb, adds replicas param --- deploy/kessel-inventory-ephem.yaml | 5 ++++- deploy/kessel-inventory.yaml | 14 +++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/deploy/kessel-inventory-ephem.yaml b/deploy/kessel-inventory-ephem.yaml index 5a931f3f..c5063cc8 100644 --- a/deploy/kessel-inventory-ephem.yaml +++ b/deploy/kessel-inventory-ephem.yaml @@ -43,7 +43,7 @@ objects: - kessel-relations deployments: - name: api - replicas: 1 + replicas: ${{REPLICAS}} podSpec: initContainers: - name: migration @@ -96,3 +96,6 @@ parameters: name: IMAGE_TAG required: true value: latest + - description: Number of replicas + name: REPLICAS + value: 1 diff --git a/deploy/kessel-inventory.yaml b/deploy/kessel-inventory.yaml index 3c04a768..18ca6f9c 100644 --- a/deploy/kessel-inventory.yaml +++ b/deploy/kessel-inventory.yaml @@ -15,7 +15,7 @@ objects: - kessel-relations deployments: - name: api - replicas: 1 + replicas: ${{REPLICAS}} podSpec: initContainers: - name: migration @@ -52,6 +52,15 @@ objects: public: enabled: true apiPath: inventory + - kind: PodDisruptionBudget + apiVersion: policy/v1 + metadata: + name: kessel-inventory-api-pdb + spec: + minAvailable: 1 + selector: + matchLabels: + app: kessel-inventory parameters: - description: ClowdEnvironment name (ephemeral, stage, prod) name: ENV_NAME @@ -63,3 +72,6 @@ parameters: name: IMAGE_TAG required: true value: latest + - description: Number of replicas + name: REPLICAS + value: 1