Red Hat OpenShift WorldTour
  • Red Hat OpenShift Workshop
  • Accessing IBM Cloud - the Free Lite Account
  • Lab 1 - Start with a Docker Image
  • Command Line Interface - Using the CLI in a Terminal
  • Claiming Your Red Hat OpenShift Cluster for This Workshop
  • Pre-Requesites Lab 2
  • Lab 2 - Using an existing image to create a project
  • Lab 3 - stretch goal
  • Lab 3 with LogDNA
  • Next Steps
    • IBM/minishift101 - step 1 - accessing cluster
    • IBM/minishift101 - step 2 - creating an app from source
    • IBM/minishift101 - step 3
    • IBM/minishift101 - step 4 networking
  • How Did You Like This Workshop?
  • FAQ
    • Lab 2 v 3.x - Using an existing image to create a project
    • Lab 3 - Deploying a Project to Red Hat OpenShift Kubernetes Cluster
      • Lab 3 - setting up
      • Lab 3 - instructions on creating an OpenShift project
Powered by GitBook
On this page
  • 1. Login to the cluster
  • 2. Create a project

Was this helpful?

  1. Next Steps

IBM/minishift101 - step 1 - accessing cluster

Learn how to login to an OpenShift cluster and create a new project in Minishift.

PreviousNext StepsNextIBM/minishift101 - step 2 - creating an app from source

Last updated 5 years ago

Was this helpful?

1. Login to the cluster

Login to the cluster with the output from the command after running minishift start as described in .

$ oc login -u system:admin

If you get an error about the oc command not being found, you can source it with the following command:

$ eval $(minishift oc-env)

As you will be able to see, there are several projects available to be able to switch between different workloads.

2. Create a project

You should have a default project setup already but we will create a new project for our new application.

$ oc new-project nodejs-echo --display-name="nodejs" --description="Sample Node.js app"

Now you should have a new project with the label nodejs and your active project will now point to it. If you want to switch between projects, run:

$ oc project <display-name>

Congratulations, you have logged into your cluster and have created your first OpenShift project! To learn how to create your first application move on to the next lab (Lab 2).

setup overview