Skip to main content
Version: main 🚧

Limit range

Supported Configurations
Running the control plane as a container with:

You can create a LimitRange policy to constrain cluster resource allocation. vCluster creates the LimitRange on the host in the same namespace as vCluster itself. LimitRange only applies to synced resources, such as pods.

Example​

If you would normally deploy the following LimitRange:

apiVersion: v1
kind: LimitRange
metadata:
name: vcluster-limit-range
spec:
limits:
- default:
memory: 512Mi
cpu: "1"
defaultRequest:
memory: 128Mi
cpu: 100m
type: Container

Instead configure the LimitRange in your vcluster.yaml config file like this:

policies:
limitRange:
enabled: true
default:
memory: 512Mi
cpu: "1"
defaultRequest:
memory: 128Mi
cpu: 100m

Config reference​

For every field under policies.limitRange, see the policies reference.