chore(deploy): add resource limits and pod disruption budget

this is useful for HPA

Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
Amogh Lele 2021-06-30 04:00:03 +05:30
parent 81e2b36330
commit 5c9c40aada
No known key found for this signature in database
GPG Key ID: 1A44596652153B27
2 changed files with 14 additions and 0 deletions

View File

@ -43,4 +43,9 @@ spec:
ports: ports:
- containerPort: 5000 - containerPort: 5000
name: katbin-service name: katbin-service
resources:
limits:
cpu: 500m
requests:
cpu: 200m
imagePullPolicy: Always imagePullPolicy: Always

View File

@ -0,0 +1,9 @@
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: katbin-service-podbudget
spec:
maxUnavailable: 0
selector:
matchLabels:
app.kubernetes.io/name: katbin-service