You must create a KnativeServing object to install Knative Serving using the OpenShift Serverless Operator.

You must create the KnativeServing object in the knative-serving namespace, as shown in the sample YAML, or it is ignored.

Sample serving.yaml
apiVersion: v1
kind: Namespace
metadata:
 name: knative-serving
---
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeServing
metadata:
 name: knative-serving
 namespace: knative-serving
Prerequisite
  • An account with cluster administrator access.

  • Installed OpenShift Serverless Operator.

Procedure
  1. Copy the sample YAML file into the serving.yaml file and enter the following command to apply it:

    $ oc apply -f serving.yaml
  2. To verify the installation is complete, enter the following command:

    $ oc get knativeserving.operator.knative.dev/knative-serving -n knative-serving --template='{{range .status.conditions}}{{printf "%s=%s\n" .type .status}}{{end}}'

    Results should be similar to:

    DeploymentsAvailable=True
    InstallSucceeded=True
    Ready=True