Skip to main content
Version: 6.x (Latest)

Change Resource Constraints For Dev Containers

Containers in Kubernetes can request a required amount of infrastructure resources such as CPU and memory. Additionally, containers can also be limited to use no more than a certain threshold of such resources.

To change the infrastructure requests or limits for your dev container, specify the resources field.

devspace.yaml
dev:
backend:
imageSelector: ghcr.io/org/project/image
devImage: ghcr.io/loft-sh/devspace-containers/python:3-alpine
resources:
limits:
memory: 2Gi
requests:
cpu: 0.2
memory: 512Mi

Config Reference

resources required

Resources can be used to override the resource definitions of the container

requests required <request_name>:string

Requests are the requests part of the resources

limits required <limit_name>:string

Limits are the limits part of the resources