Skip to content

Commit

Permalink
feat(launch): adding agent.nodeSelector variable for agent chart (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcsherma authored Nov 2, 2023
1 parent 552b7e8 commit bfca087
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/launch-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: launch-agent
icon: https://em-content.zobj.net/thumbs/240/apple/354/rocket_1f680.png
description: A Helm chart for running the W&B Launch Agent in Kubernetes
type: application
version: 0.11.2
version: 0.11.3
maintainers:
- name: wandb
email: support@wandb.com
Expand Down
2 changes: 2 additions & 0 deletions charts/launch-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ The table below describes all the available variables in the chart:
| `agent.useExternalWandbSecret` | bool | **false** | "" | Used to indicate you want to provide the api key secret external to this chart. |
| `agent.image` | string | No | `wandb/launch-agent-dev:latest` | Container image for the agent. |
| `agent.imagePullPolicy` | string | No | `Always` | Pull policy for the agent container image. |
| `agent.resources` | object | No | Limit to 1 CPU, 1Gi RAM | Pod spec resources block for the agent. |
| `agent.nodeSelector` | object | No | `{}` | Node selector for the agent pod. |
| `agent.resources` | object | No | Limit to 1 CPU, 1Gi RAM | Pod spec resources block for the agent. true |
| `agent.startTimeout` | int | No | `1800` | Timeout in seconds that the agent will wait for a job to start before timing out. |
| `namespace` | string | No | `wandb` | The namespace to deploy the agent into. |
Expand Down
2 changes: 2 additions & 0 deletions charts/launch-agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,6 @@ spec:
secret:
secretName: git-config
{{ end}}
nodeSelector:
{{- toYaml .Values.agent.nodeSelector | nindent 8 }}
...
2 changes: 2 additions & 0 deletions charts/launch-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ agent:
limits:
cpu: 1000m
memory: 1Gi
# Node selector for the agent pod.
nodeSelector: {}
# Job start timeout (seconds)
startTimeout: 1800

Expand Down

0 comments on commit bfca087

Please sign in to comment.