Creating a project using the web console

If allowed by your cluster administrator, you can create a new project.

Procedure
  1. Navigate to HomeProjects.

  2. Click Create Project.

  3. Enter your project details.

  4. Click Create.

Creating a project using the Developer perspective in the web console

You can use the Developer perspective in the OpenShift Dedicated web console to create a project in your namespace.

Prerequisites
  • Ensure that you have the appropriate roles and permissions to create projects, applications, and other workloads in OpenShift Dedicated.

Procedure

You can create a project using the Developer perspective, as follows:

  1. In the Add view, click the Project drop-down menu to see a list of all available projects. Select Create Project.

    Create Project
  2. In the Create Project dialog box, enter a unique name for the Name field. For example, enter myproject as the name of the project in the Name field.

  3. Optionally, add the Display Name and Description details for the Project.

  4. Click Create.

Your project is now created and you can add applications and other workloads in to this project.

Creating a project using the CLI

If allowed by your cluster administrator, you can create a new project.

Procedure
  1. 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.

Viewing a project using the web console

Procedure
  1. Navigate to HomeProjects.

  2. Select a project to view.

    On this page, click the Workloads button to see workloads in the project.

Viewing a project using the CLI

When viewing projects, you are restricted to seeing only the projects you have access to view based on the authorization policy.

Procedure
  1. To view a list of projects, run:

    $ oc get projects
  2. 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>

Adding to a project

Procedure
  1. Select Developer from the context selector at the top of the web console navigation menu.

  2. Click +Add

  3. At the top of the page, select the name of the project that you want to add to.

  4. Click on a method for adding to your project, and then follow the workflow.

Checking project status using the web console

Procedure
  1. Navigate to HomeProjects.

  2. Select a project to see its status.

Checking project status using the CLI

Procedure
  1. Run:

    $ oc status

    This command provides a high-level overview of the current project, with its components and their relationships.

Deleting a project using the web console

Procedure
  1. Navigate to HomeProjects.

  2. Locate the project that you want to delete from the list of projects.

  3. On the far right side of the project listing, select Delete Project from the menu. If you do not have permissions to delete the project, the Delete Project option is grayed out and the option is not clickable.

Deleting a project using the CLI

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.

Procedure
  1. Run:

    $ oc delete project <project_name>