I know we can limit users from accessing the resources by using autherisatoin (RBAC policy). But is there any ways to customise the number of pods or containers a user can create inside a cluster?
let's begin by having a Namespaces, Now we can limit the number of active pods where the phase is running or pending by using ResourceQuota for a namespace. For example
apiVersion: v1
kind: ResourceQuota
metadata:
name: quota
spec:
hard:
metadata:
name: object-counts
spec:
hard:
configmaps: "10"
persistentvolumeclaims: "4"
secrets: "10"
pods:"20"
services: "10"
services.loadbalancers: "2"
I have attached the link for further research resource-quota