How to set resource class configuration for container runner

If you would like to add resource class limits from within your config.yml you can define these within the spec section of your config.

Instructions

An example can be found below which will limit both the CPU and memory for the containers within the specified resource class.

CPU resources are always specified as an absolute amount of resources, never as a relative amount.

Memory resource is the amount of ram made available to the container running the job for the specific resource class

agent:
  resourceClasses:
    my-namespace/my-resourceClass:
      token: MY_TOKEN
      spec:
        containers:
          - resources:
              limits:
                cpu: 500m
                memory: 256Mi
        nodeSelector:
          key: value

You can define pod configuration settings in the spec block, similar to how you would define them in Kubernetes manifests (YAML).

Additional Resources

More information can be found here in our documentation.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.