generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from nojnhuh/hpa-catalog
add HorizontalPodAutoscaler stub to catalog
- Loading branch information
Showing
16 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
serving-catalog/core/deployment/components/hpa/base/hpa.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: autoscaling/v2 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: singlehost-inference-hpa | ||
spec: | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: singlehost-inference-deployment-blueprint | ||
# TODO: also include stabilizing-windows, tolerance threshold, etc. |
6 changes: 6 additions & 0 deletions
6
serving-catalog/core/deployment/components/hpa/base/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# kustomization.yaml | ||
apiVersion: kustomize.config.k8s.io/v1alpha1 | ||
kind: Component | ||
|
||
resources: | ||
- hpa.yaml |
17 changes: 17 additions & 0 deletions
17
serving-catalog/core/deployment/components/hpa/jetstream/token-latency/hpa.patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: autoscaling/v2 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: singlehost-inference-hpa | ||
spec: | ||
# TODO: add best practices as defined at: | ||
# - https://cloud.google.com/kubernetes-engine/docs/how-to/machine-learning/inference/autoscaling-tpu | ||
# - https://cloud.google.com/kubernetes-engine/docs/how-to/machine-learning/inference/autoscaling | ||
minReplicas: 1 | ||
maxReplicas: 10 | ||
metrics: | ||
- type: Pods | ||
pods: | ||
metric: | ||
name: jetstream-token-latency-ms | ||
target: | ||
type: AverageValue |
11 changes: 11 additions & 0 deletions
11
serving-catalog/core/deployment/components/hpa/jetstream/token-latency/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# kustomization.yaml | ||
apiVersion: kustomize.config.k8s.io/v1alpha1 | ||
kind: Component | ||
|
||
components: | ||
- ../../base | ||
|
||
patches: | ||
- path: hpa.patch.yaml | ||
target: | ||
kind: HorizontalPodAutoscaler |
14 changes: 14 additions & 0 deletions
14
serving-catalog/core/deployment/components/hpa/vllm/token-latency/hpa.patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: autoscaling/v2 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: singlehost-inference-hpa | ||
spec: | ||
minReplicas: 1 | ||
maxReplicas: 10 | ||
metrics: | ||
- type: Pods | ||
pods: | ||
metric: | ||
name: vllm-token-latency-ms | ||
target: | ||
type: AverageValue |
11 changes: 11 additions & 0 deletions
11
serving-catalog/core/deployment/components/hpa/vllm/token-latency/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# kustomization.yaml | ||
apiVersion: kustomize.config.k8s.io/v1alpha1 | ||
kind: Component | ||
|
||
components: | ||
- ../../base | ||
|
||
patches: | ||
- path: hpa.patch.yaml | ||
target: | ||
kind: HorizontalPodAutoscaler |
10 changes: 10 additions & 0 deletions
10
serving-catalog/core/deployment/jetstream/gemma-7b-it/gke/hpa.patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- op: add | ||
path: /metadata/name | ||
value: gemma-7b-it-jetstream-hpa | ||
- op: add | ||
path: /metadata/labels | ||
value: | ||
app: gemma-7b-it-jetstream-inference-server | ||
- op: add | ||
path: /spec/metrics/0/pods/target/averageValue | ||
value: 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
serving-catalog/core/deployment/jetstream/llama3-8b/gke/hpa.patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- op: add | ||
path: /metadata/name | ||
value: llama3-8b-jetstream-hpa | ||
- op: add | ||
path: /metadata/labels | ||
value: | ||
app: llama3-8b-jetstream-inference-server | ||
- op: add | ||
path: /spec/metrics/0/pods/target/averageValue | ||
value: 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
serving-catalog/core/deployment/vllm/gemma-2b/gke/hpa.patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- op: add | ||
path: /metadata/name | ||
value: gemma-2b-vllm-hpa | ||
- op: add | ||
path: /metadata/labels | ||
value: | ||
app: gemma-2b-vllm-inference-server | ||
- op: add | ||
path: /spec/metrics/0/pods/target/averageValue | ||
value: 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
serving-catalog/core/deployment/vllm/llama3-70b/gke/hpa.patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- op: add | ||
path: /metadata/name | ||
value: llama3-70b-vllm-hpa | ||
- op: add | ||
path: /metadata/labels | ||
value: | ||
app: llama3-70b-vllm-inference-server | ||
- op: add | ||
path: /spec/metrics/0/pods/target/averageValue | ||
value: 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
serving-catalog/core/deployment/vllm/llama3-8b/gke/hpa.patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- op: add | ||
path: /metadata/name | ||
value: llama3-8b-vllm-hpa | ||
- op: add | ||
path: /metadata/labels | ||
value: | ||
app: llama3-8b-vllm-inference-server | ||
- op: add | ||
path: /spec/metrics/0/pods/target/averageValue | ||
value: 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters