Creating the knative-serving namespace

When you create the knative-serving namespace, a knative-serving project will also be created.

You must complete this procedure before installing Knative Serving.

If the KnativeServing object created during Knative Serving’s installation is not created in the knative-serving namespace, it will be ignored.

Prerequisites
  • An Azure Red Hat OpenShift account with cluster administrator access

  • Installed OpenShift Serverless Operator

Creating the knative-serving namespace using the web console

Procedure
  1. In the Azure Red Hat OpenShift web console, navigate to AdministrationNamespaces.

    Namespaces page
  2. Enter knative-serving as the Name for the project. The other fields are optional.

    Creating the `knative-eventing` namespace
  3. Click Create.

Creating the knative-serving namespace using the CLI

Procedure
  1. Create the knative-serving namespace by entering:

    $ oc create namespace knative-serving

Installing Knative Serving

Prerequisites
  • An Azure Red Hat OpenShift account with cluster administrator access.

  • Installed OpenShift Serverless Operator.

  • Created the knative-serving namespace.

Installing Knative Serving using the web console

Procedure
  1. In the Administrator perspective of the Azure Red Hat OpenShift web console, navigate to OperatorsInstalled Operators.

  2. Check that the Project dropdown at the top of the page is set to Project: knative-serving.

  3. Click Knative Serving in the list of Provided APIs for the OpenShift Serverless Operator to go to the Knative Serving tab.

    Installed Operators page
  4. Click the Create Knative Serving button.

    Knative Serving tab
  5. In the Create Knative Serving page, you can choose to configure the KnativeServing object by using either the default form provided, or by editing the YAML.

    • Using the form is recommended for simpler configurations that do not require full control of KnativeServing object creation.

      Optional. If you are configuring the KnativeServing object using the form, make any changes that you want to implement for your Knative Serving deployment.

      After you complete the form, click Create.

      Create Knative Serving in Form View
    • Editing the YAML is recommended for more complex configurations that require full control of KnativeServing object creation. You can access the YAML by clicking the edit YAML link in the top right of the Create Knative Serving page.

      Optional. If you are configuring the KnativeServing object by editing the YAML, make any changes to the YAML that you want to implement for your Knative Serving deployment.

      After you have finished modifying the YAML, click Create.

      Create Knative Serving in YAML view
  6. After you have installed Knative Serving, the KnativeServing object is created, and you will be automically directed to the Knative Serving tab.