This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Limiting the number of Projects
robbaronbu edited this page Jun 14, 2017
·
3 revisions
UP: https://github.com/CCI-MOC/moc-public/wiki/OpenShift
Limiting the number of projects a user can have.
On each master do the following:
-
Ensure the new-project-template has the following line: objects: kind: Project, metadata: annotations: {..."openshift.io/requester": "${PROJECT_REQUESTING_USER}"...}
-
Add the following to the /etc/origin/master/master-config.yaml file:
admissionConfig: pluginConfig: ProjectRequestLimit: configuration: apiVersion: v1 kind: ProjectRequestLimitConfig limits: - selector: level: admin - selector: level: advanced maxProjects: 10 - maxProjects: 2
This means that user accounts labeled with admin can create an unlimited number of projects, user accounts labeled with "advance" can create 10 projects, and all other user accounts can create only 2 projects.
-
restart the master:
systemctl restart atomic-openshift-master-api systemctl restart atomic-openshift-master-controllers