Skip to content

Commit

Permalink
add HorizontalPodAutoscaler to catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
nojnhuh committed Oct 3, 2024
1 parent b071351 commit c2af4d7
Show file tree
Hide file tree
Showing 10 changed files with 64 additions and 0 deletions.
19 changes: 19 additions & 0 deletions serving-catalog/core/deployment/base/hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: singlehost-inference-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: singlehost-inference-deployment-blueprint
minReplicas: 1
maxReplicas: 10
metrics:
- type: Pods
pods:
metric:
name: token-latency-ms
target:
type: AverageValue
averageValue: 50
1 change: 1 addition & 0 deletions serving-catalog/core/deployment/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ kind: Kustomization

resources:
- deployment.yaml
- hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
labels:
app: gemma-7b-it-jetstream-inference-server
name: gemma-7b-it-jetstream-hpa
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ patches:
kind: Deployment
options:
allowNameChange: true
- path: hpa.patch.yaml
target:
kind: HorizontalPodAutoscaler
options:
allowNameChange: true
- path: job.patch.yaml
target:
kind: Job
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
labels:
app: llama3-8b-jetstream-inference-server
name: llama3-8b-jetstream-hpa
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ patches:
kind: Deployment
options:
allowNameChange: true
- path: hpa.patch.yaml
target:
kind: HorizontalPodAutoscaler
options:
allowNameChange: true
- path: job.patch.yaml
target:
kind: Job
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
labels:
app: gemma-2b-vllm-inference-server
name: gemma-2b-vllm-hpa
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ patches:
kind: Deployment
options:
allowNameChange: true
- path: hpa.patch.yaml
target:
kind: HorizontalPodAutoscaler
options:
allowNameChange: true
- path: service.patch.yaml
target:
kind: Service
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
labels:
app: llama3-8b-vllm-inference-server
name: llama3-8b-vllm-hpa
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ patches:
path: deployment.patch.yaml
target:
kind: Deployment
- options:
allowNameChange: true
path: hpa.patch.yaml
target:
kind: HorizontalPodAutoscaler
- options:
allowNameChange: true
path: service.patch.yaml
Expand Down

0 comments on commit c2af4d7

Please sign in to comment.