Kubespec Logo kubespec.dev

v1 · Cluster Resource

LimitRange

        LimitRange sets resource usage limits for each kind of resource in a Namespace.
      

Click on Property Name to see the description, and Pink Types to expand schema.

Looking for some examples?

There are 2 examples of LimitRange that you can use as a starting point to create your own.

apiVersion: v1
kind: LimitRange
metadata:
  name: defaults-cpu-memory
  namespace: payments # only pods in the payments namespace will be affected
spec:
  limits:
    - defaultRequest: # pods without a CPU or Memory request defined in their spec will get this value
        cpu: 500m
        memory: 512Mi
      type: Container

Other useful resources