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:
2 files changed
+14
No files matched your search
@@ -43,4 +43,9 @@ spec:
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
name: katbin-service
|
||||
resources:
|
||||
limits:
|
||||
cpu: 500m
|
||||
requests:
|
||||
cpu: 200m
|
||||
imagePullPolicy: Always
|
||||
@@ -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
|
||||
Reference in new issue
Block a user