Skip to content

Commit

Permalink
adds pdb, adds replicas param
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytheleg committed Oct 28, 2024
1 parent d158ca8 commit 4f19bbb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
5 changes: 4 additions & 1 deletion deploy/kessel-inventory-ephem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ objects:
- kessel-relations
deployments:
- name: api
replicas: 1
replicas: ${{REPLICAS}}
podSpec:
initContainers:
- name: migration
Expand Down Expand Up @@ -96,3 +96,6 @@ parameters:
name: IMAGE_TAG
required: true
value: latest
- description: Number of replicas
name: REPLICAS
value: 1
14 changes: 13 additions & 1 deletion deploy/kessel-inventory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ objects:
- kessel-relations
deployments:
- name: api
replicas: 1
replicas: ${{REPLICAS}}
podSpec:
initContainers:
- name: migration
Expand Down Expand Up @@ -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
Expand All @@ -63,3 +72,6 @@ parameters:
name: IMAGE_TAG
required: true
value: latest
- description: Number of replicas
name: REPLICAS
value: 1

0 comments on commit 4f19bbb

Please sign in to comment.