Azure Red Hat OpenShift 3.11 will be retired 30 June 2022. Support for creation of new Azure Red Hat OpenShift 3.11 clusters continues through 30 November 2020. Following retirement, remaining Azure Red Hat OpenShift 3.11 clusters will be shut down to prevent security vulnerabilities.
A project allows a community of users to organize and manage their content in isolation from other communities.
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.
To create a new project using the CLI:
$ oc new-project <project_name> \ --description="<description>" --display-name="<display_name>"
$ oc new-project hello-openshift \ --description="This is an example project to demonstrate OpenShift v3" \ --display-name="Hello OpenShift"
The number of projects you are allowed to create Once your limit is reached, you may need to delete an existing project in order to create a new one.
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:
$ 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>
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.
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:
oc status command provides a high-level overview of the current project,
with its components and their relationships. This command takes no argument:
$ oc status
You can filter the contents of a project page in the web console by using the labels 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:
Select a label type:
Select one of the following:
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.
Verify that the label name exists and is equal to one of the selected values.
Verify that the label name does not exist, or is not equal to any of the selected values.
After adding filters, you can stop filtering by selecting Clear all filters or by clicking individual filters to remove them:
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:
$ oc delete project <project_name>