ResourceQuota
apiVersion: v1
kind: ResourceQuota
metadata:
name: namespace-limits
namespace: random-namespace
spec:
hard:
requests.cpu: "1"
requests.memory: 1Gi
limits.cpu: "2"
limits.memory: 2Gi
there are other quotas that can be specified:
configmaps
, pv, replication controllers, etc.