Skip to content

Commit

Permalink
feat: add affinity template into agent (#126)
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Rabbito <arabbito@coreweave.com>
Co-authored-by: Ben Sherman <ben@wandb.com>
  • Loading branch information
anthr76 and bcsherma authored May 29, 2024
1 parent b512d95 commit 1ea5c6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
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.13.3
version: 0.13.4
maintainers:
- name: wandb
email: support@wandb.com
Expand Down
4 changes: 3 additions & 1 deletion charts/launch-agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ spec:
{{- toYaml .Values.agent.nodeSelector | nindent 8 }}
tolerations:
{{- toYaml .Values.agent.tolerations | nindent 8 }}
affinity:
{{- toYaml .Values.agent.affinity | nindent 8 }}
---
{{- if .Capabilities.APIVersions.Has "policy/v1" }}
apiVersion: policy/v1
Expand All @@ -160,4 +162,4 @@ spec:
matchLabels:
app: launch-agent-{{ .Release.Name }}
---
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/launch-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ agent:
minAvailable: 1
# Tolerations for the agent pod.
tolerations: []
# Affinites for the agent pod.
affinity: {}

# Namespace to deploy launch agent into
namespace: wandb
Expand Down

0 comments on commit 1ea5c6e

Please sign in to comment.