How to manage resources of groups in jupyterhub

I want to limit a group to consume specific amount of CPU this can be achieved in some way?

I am using k8s

JupyterHub resource limits are handled by the underlying infrastructure. In Kubernetes you can create namespace quotas

KubeSpawner supports running each user in their own namespace, but you’d need to subclass the spawner to use create a namespace based on group not username. You’d also need to decide how to handle a user being a member of multiple groups.