From 3a81fd5028ca3301faefd4b017e34e430918d625 Mon Sep 17 00:00:00 2001 From: Nick Penaranda Date: Wed, 17 Jul 2024 12:24:17 -0400 Subject: [PATCH] fix: HPA could not scale weave (#177) --- charts/operator-wandb/Chart.yaml | 2 +- .../operator-wandb/charts/weave/templates/deployment.yaml | 3 +++ charts/operator-wandb/charts/weave/values.yaml | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/charts/operator-wandb/Chart.yaml b/charts/operator-wandb/Chart.yaml index ae4ce516..ec0c4d4a 100644 --- a/charts/operator-wandb/Chart.yaml +++ b/charts/operator-wandb/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: operator-wandb description: A Helm chart for deploying W&B to Kubernetes type: application -version: 0.14.14 +version: 0.14.15 appVersion: 1.0.0 icon: https://wandb.ai/logo.svg diff --git a/charts/operator-wandb/charts/weave/templates/deployment.yaml b/charts/operator-wandb/charts/weave/templates/deployment.yaml index bfc3239c..f459afc2 100644 --- a/charts/operator-wandb/charts/weave/templates/deployment.yaml +++ b/charts/operator-wandb/charts/weave/templates/deployment.yaml @@ -107,6 +107,9 @@ spec: - name: cache mountPath: /vol/weave/cache + resources: + {{- toYaml .Values.cacheClear.resources | nindent 12 }} + volumes: - name: cache emptyDir: diff --git a/charts/operator-wandb/charts/weave/values.yaml b/charts/operator-wandb/charts/weave/values.yaml index 542fd2c4..cb138c3b 100644 --- a/charts/operator-wandb/charts/weave/values.yaml +++ b/charts/operator-wandb/charts/weave/values.yaml @@ -57,3 +57,9 @@ cache: intervalInHours: 24 size: 20Gi medium: "" + +cacheClear: + resources: + requests: + cpu: 100m + memory: 128Mi \ No newline at end of file