A project allows a community of users to organize and manage their content in isolation from other communities.
Projects starting with |
If allowed by your cluster administrator, you can create a new project.
Projects starting with |
Navigate to Home → Projects.
Click Create Project.
Enter your project details.
Click Create.
You can use the Developer perspective in the OpenShift Container Platform web console to create a project in your cluster.
Projects starting with |
Ensure that you have the appropriate roles and permissions to create projects, applications, and other workloads in OpenShift Container Platform.
You can create a project using the Developer perspective, as follows:
Click the Project drop-down menu to see a list of all available projects. Select Create Project.
In the Create Project dialog box, enter a unique name, such as myproject
, in the Name field.
Optional: Add the Display Name and Description details for the project.
Click Create.
Use the left navigation panel to navigate to the Project view and see the dashboard for your project.
Optional:
Use the Project drop-down menu at the top of the screen and select all projects to list all of the projects in your cluster.
Use the Details tab to see the project details.
If you have adequate permissions for a project, you can use the Project Access tab to provide or revoke administrator, edit, and view privileges for the project.
If allowed by your cluster administrator, you can create a new project.
Projects starting with |
Run:
$ oc new-project <project_name> \ --description="<description>" --display-name="<display_name>"
For example:
$ oc new-project hello-openshift \ --description="This is an example project" \ --display-name="Hello OpenShift"
The number of projects you are allowed to create may be limited by the system administrator. After your limit is reached, you might have to delete an existing project in order to create a new one. |
Navigate to Home → Projects.
Select a project to view.
On this page, click the Workloads button to see workloads in the project.
When viewing projects, you are restricted to seeing only the projects you have access to view based on the authorization policy.
To view a list of projects, run:
$ oc get projects
You can change from the current project to a different project for CLI operations. The specified project is then used in all subsequent operations that manipulate project-scoped content:
$ oc project <project_name>
Select Developer from the context selector at the top of the web console navigation menu.
Click +Add
At the top of the page, select the name of the project that you want to add to.
Click on a method for adding to your project, and then follow the workflow.
Navigate to Home → Projects.
Select a project to see its status.
Run:
$ oc status
This command provides a high-level overview of the current project, with its components and their relationships.
You can delete a project by using the OpenShift Container Platform web console.
If you do not have permissions to delete the project, the Delete Project option is not available. |
Navigate to Home → Projects.
Locate the project that you want to delete from the list of projects.
On the far right side of the project listing, select Delete Project from the Options menu .
When the Delete Project pane opens, enter the name of the project that you want to delete in the field.
Click Delete.
When you delete a project, the server updates the project status to Terminating from Active. Then, the server clears all content from a project that is in the Terminating state before finally removing the project. While a project is in Terminating status, you cannot add new content to the project. Projects can be deleted from the CLI or the web console.
Run:
$ oc delete project <project_name>