Skip to content

Commit

Permalink
fix: HPA (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyblasczyk authored Jan 15, 2025
1 parent ab80fad commit c6d924b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions charts/operator-wandb/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dependencies:
version: 0.1.0
- name: wandb-base
repository: file://../wandb-base
version: 0.3.0
version: 0.3.1
- name: console
repository: file://charts/console
version: 0.1.0
Expand Down Expand Up @@ -58,9 +58,9 @@ dependencies:
version: 0.1.0
- name: wandb-base
repository: file://../wandb-base
version: 0.3.0
version: 0.3.1
- name: wandb-base
repository: file://../wandb-base
version: 0.3.0
digest: sha256:3ee5e247e2de8e6911c512fc5c1ef58a463d545365f1c5d3c0f4be28e2ee29fd
generated: "2025-01-13T18:23:28.474058-06:00"
version: 0.3.1
digest: sha256:1a7fcf17afdf2374b1d55481a3df08b57fc781717e162f497d06739ca669393f
generated: "2025-01-14T18:12:39.737087-06:00"
2 changes: 1 addition & 1 deletion charts/operator-wandb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: operator-wandb
description: A Helm chart for deploying W&B to Kubernetes
type: application
version: 0.23.0
version: 0.23.1
appVersion: 1.0.0
icon: https://wandb.ai/logo.svg

Expand Down
2 changes: 1 addition & 1 deletion charts/wandb-base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: wandb-base
description: A generic helm chart for deploying services to kubernetes
type: application
version: 0.3.0
version: 0.3.1
icon: https://wandb.ai/logo.svg

maintainers:
Expand Down
12 changes: 6 additions & 6 deletions charts/wandb-base/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ spec:
apiVersion: apps/v1
kind: {{ .Values.kind }}
name: {{ include "wandb-base.fullname" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
minReplicas: {{ .Values.autoscaling.horizontal.minReplicas }}
maxReplicas: {{ .Values.autoscaling.horizontal.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- if .Values.autoscaling.horizontal.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
averageUtilization: {{ .Values.autoscaling.horizontal.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- if .Values.autoscaling.horizontal.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
averageUtilization: {{ .Values.autoscaling.horizontal.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}

0 comments on commit c6d924b

Please sign in to comment.