diff --git a/docs/docs/concepts/backends.md b/docs/docs/concepts/backends.md index da58f36e0..8243338fb 100644 --- a/docs/docs/concepts/backends.md +++ b/docs/docs/concepts/backends.md @@ -1060,7 +1060,64 @@ projects: Ensure you've created a ClusterRoleBinding to grant the role to the user or the service account you're using. -> To learn more, see the [Lambda](../../examples/clusters/lambda/#kubernetes) and [Lambda](../../examples/clusters/crusoe/#kubernetes) examples. +??? info "Resources and offers" + [Resources](../concepts/tasks.md#resources) specified in the run configuration are translated to Kubernetes + [requests and limits](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limits) as follows: + + - As with other backends, an exact value is translated to a range with the same lower and upper limits, + e.g., `cpu: 4` is the same as `cpu: 4..4`. + - The lower limit, if set, is used as a resource request, meaning that it is guaranteed that the container has at least the specified + amount of the resource. + - For resources other than `gpu`, the upper limit, if set, is used as a resource limit, meaning that the container is not allowed + to consume more resources than specified. If the upper limit is not set, the resource limit is also not set. + - For `gpu` resources, the upper limit is always ignored, and the resource limit is always set to the same value as the resource request, + that is, to the lower limit of the range. + + For example, the following resources specification: + +