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:
sphericalkat committed 2021-06-30 04:00:03 +05:30
1 parent 81e2b36330
commit 5c9c40aada
2 files changed
+14

No files matched your search

+5
View File
@@ -43,4 +43,9 @@ spec:
ports:
- containerPort: 5000
name: katbin-service
resources:
limits:
cpu: 500m
requests:
cpu: 200m
imagePullPolicy: Always
+9
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