Projects

    Creating a Project

    by your cluster administrator, you can create a new project using the CLI or the .

    To create a new project using the web console, click the Create Project button on the Projects panel or the Projects page.

    The Create Project button is displayed by default, but can be optionally hidden or customized.

    Using the CLI

    To create a new project using the CLI:

    For example:

    1. --description="This is an example project to demonstrate OpenShift v3" \

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

    To view a list of 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:

      The right panel shown with the service catalog provides quick access to the most recently accessed projects (up to five projects). For the full list of projects, use the View All link provided at the top of the right panel.

      Projects List

      If you use the CLI to , you can then refresh the page in the browser to see the new project.

      Selecting a project brings you to the project overview for that project.

      Clicking on the kebab menu for a particular project presents you with the following options:

      Checking Project Status

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

      You can filter the contents of a project page in the web console by using the of a resource. You can pick from a suggested label name and values, or type in your own. Multiple filters can be added. When multiple filters are applied, resources must match all of the filters to remain visible.

      To filter by labels:

      1. Select a label type:

      2. Select one of the following:

        exists

        Verify that the label name exists, but ignore its value.

        does not exist

        Verify that the label name does not exist, but ignore its value.

        in

        Verify that the label name exists and is equal to one of the selected values.

        not in

        Verify that the label name does not exist, or is not equal to any of the selected values.

        Web Console Filter Step 2
        1. If you selected in or not in, select a set of values then select Filter:

      3. After adding filters, you can stop filtering by selecting Clear all filters or by clicking individual filters to remove them:

        Clear filters

      Deleting a Project

      When you delete a project, the server updates the project status to Terminating from Active. The server then clears all content from a project that is Terminating before finally removing the project. While a project is in Terminating status, a user cannot add new content to the project. Projects can be deleted from the CLI or the web console.

      To delete a project using the CLI:

      1. $ oc delete project <project_name>