Skip to content

Commit

Permalink
add hpa for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Jan 1, 2024
1 parent 083a47c commit 080fa29
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions deploy/prod/hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: xlog-caddy
namespace: crossbell
spec:
maxReplicas: 20
minReplicas: 3
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: xlog-caddy
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 150
1 change: 1 addition & 0 deletions deploy/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Kustomization

resources:
- ../base
- hpa.yaml

patches:
- patch: |-
Expand Down

0 comments on commit 080fa29

Please sign in to comment.