Set up a project for self-service automation portal in OpenShift
Jump to section
Set up an OpenShift project using the web consoleProcedureSet up an OpenShift project using the CLIBefore you beginProcedure
To help you find information quickly, we’ve remodeled the documentation to focus on how you work. Need help finding something?
Explore the updated navigation, use search, or get answers from Ask Red Hat.
Share Feedback to help us keep improving.
Set up a project for self-service automation portal in OpenShift
You must set up a project in OpenShift Container Platform for self-service automation portal. You can create the project from a terminal using the oc command, or in the OpenShift Container Platform web console.
In a terminal, log in to OpenShift Container Platform using your credentials:
$ oc login <OpenShift_API_URL> -u <username>
The following example shows the output for a successful login:
$ oc login https://api.<my_cluster>.com:6443 -u kubeadmin
WARNING: Using insecure TLS client config. Setting this option is not supported!
Console URL: https://api.<my_cluster>.com:6443/console
Authentication required for https://api.<my_cluster>.com:6443 (openshift)
Username: kubeadmin
Password:
Login successful.
You have access to 22 projects, the list has been suppressed. You can list all projects with 'oc projects'
Using project "default".
Create a new project. Use a unique project name.
$ oc new-project <self-service-project-name>
Lowercase alphanumeric characters (a-z, 0-9) and the hyphen character (-) are permitted for project names.
The underscore (_) character is not permitted.
The maximum length for project names is 63 characters.
Example:
$ oc new-project my-project
Now using project "my-project" on server "https://openshift.example.com:6443".
Open your new project:
$ oc project <self-service-project-name>
Generate Git personal access tokens
Create secrets in OpenShift for self-service automation portal
We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.
Making open source more inclusive
Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.
About Red Hat Documentation
We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.