OpenShift Project Operations: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 46: | Line 46: | ||
{{Warn|Deleting a project deletes ''all'' resources associated with the project, even if they are associated with more than one application. If a project includes multiple applications, deleting the project deletes resources for all applications.}} | {{Warn|Deleting a project deletes ''all'' resources associated with the project, even if they are associated with more than one application. If a project includes multiple applications, deleting the project deletes resources for all applications.}} | ||
To delete an individual application, see: {{Internal| | To delete an individual application, see: {{Internal|OpenShift_Application_Operations#Remove_an_Application|Remove an Application}} |
Revision as of 17:01, 21 November 2017
Internal
Overview
List All Projects
oc get projects
Describe a Project
oc describe project <project-name>
List All Components of a Project
oc get all
Create a new Project
oadm new-project --description='An isolated Lab Client' --display-name='Isolated Lab' lab
oc new-project devlab2 --description='A project created during the Advanced Development Class lab section' --display-name='Dev Lab 2'
Per-Project Node Selector
In order to set up a per-project node selector, use:
oadm new-project --node-selector='keyA=valueA,keyB=valueB'
While the "new-project" subcommand is available for both oadm and oc, creating a new project with a node selector is only available with the oadm command. The new-project subcommand is not available to project developers when self-provisioning projects.
Modify the Template for New Projects
Monitor Project's Event Log
oc get events -w
Delete a Project
Deleting a project deletes all resources associated with the project, even if they are associated with more than one application. If a project includes multiple applications, deleting the project deletes resources for all applications.
To delete an individual application, see: