To install Helm and apply or upgrade W&B’s Launch agent Helm chart, you need
kubectl access to the cluster with sufficient permissions to create, update, and delete Kubernetes resources. Typically, a user with cluster-admin or a custom role with equivalent permissions is required.Configure a queue for Kubernetes
The Launch queue configuration for a Kubernetes target resource will resemble either a Kubernetes Job spec or a Kubernetes Custom Resource spec. You can control any aspect of the Kubernetes workload resource spec when you create a Launch queue.- Kubernetes job spec
- Custom resource spec
securityContextbackOffLimitttlSecondsAfterFinished
example-spec.yaml
Create a queue
Create a queue in the W&B App that uses Kubernetes as its compute resource:- Navigate to the Launch page.
- Click on the Create Queue button.
- Select the Entity you would like to create the queue in.
- Provide a name for your queue in the Name field.
- Select Kubernetes as the Resource.
- Within the Configuration field, provide the Kubernetes Job workflow spec or Custom Resource spec you configured in the previous section.
Configure a Launch agent with Helm
Use the Helm chart provided by W&B to deploy the Launch agent into your Kubernetes cluster. Control the behavior of the launch agent with thevalues.yaml file.
Specify the contents that would normally by defined in your launch agent config file (~/.config/wandb/launch-config.yaml) within the launchConfig key in thevalues.yaml file.
For example, suppose you have Launch agent config that enables you to run a Launch agent in EKS that uses the Kaniko Docker image builder:
launch-config.yaml
values.yaml file, this might look like:
values.yaml