v1 · Namespaced Resource

LimitRange

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

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

Tired of using the CLI? 😓

Experience hassle-free Kubernetes management with our powerful GUI.

Screenshot of Aptakube showing a list of pods from 2 clusters in a single view