Skip to content

Commit

Permalink
update prod caddy resources and hpa
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Jan 8, 2024
1 parent e63effb commit 53e4837
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deploy/base/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ spec:
resources:
requests:
cpu: 50m
memory: 64Mi
memory: 128Mi
limits:
cpu: 100m
memory: 128Mi
memory: 256Mi
envFrom:
- secretRef:
name: xlog-caddy
Expand Down
19 changes: 19 additions & 0 deletions deploy/prod/hpa-validator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: xlog-caddy-validator
namespace: crossbell
spec:
maxReplicas: 20
minReplicas: 3
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: xlog-caddy-validator
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 150
8 changes: 7 additions & 1 deletion deploy/prod/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ spec:
name: cpu
target:
type: Utilization
averageUtilization: 150
averageUtilization: 150
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 100
1 change: 1 addition & 0 deletions deploy/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ kind: Kustomization
resources:
- ../base
- hpa.yaml
- hpa-validator.yaml
- svc
- oia

Expand Down

0 comments on commit 53e4837

Please sign in to comment.