简体   繁体   中英

kubernetes RBAC : allow to scale deployments upto 6 replicas

I have implemented RBAC in my project. Given permission to scale deployment but there is no upper limit to scale and it is getting misused. People are scaling deployments to 15, 20 pods. Is there any way to restrict them from scaling and allowing to scale upto certain maximum limit?

It's not possible. We will give permission at API call not on the resource.We can solve your problem by setting pod quota for specific namespace. https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/quota-pod-namespace/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM