Installing OpenShift Serverless aka Knative
The OpenShift version of Knative is called OpenShift Serverless. It is installed and managed with an Operator.
-
Go back to the OpenShift Web Console.
-
In the ‘Adminstrator’ view, select ‘Operators -> OperatorHub’ and search for ‘serverless’:
-
Click on ‘OpenShift Serverless Operator’, then click on the blue ‘Install’ button. In the ‘Create Operator Subscription’ dialog keep the defaults, and click ‘Subscribe’:
-
The Console now displays the ‘Installed Operators’. Change to the ‘openshift-operators’ project and wait until the status shows ‘Succeeded / Up to date’:
-
Next we create a namespace for Knative Serving. The Red Hat instructions specifically ask to create a namespace, not a project. Go to ‘Administrator: Administration -> Namespaces’, click ‘Create Namespace’ and enter ‘knative-serving’ as name: Click ‘Create’.
-
Go back to ‘Installed Operators’, make sure the ‘knative-serving’ project is selected, and click on ‘Knative Serving’ API:
-
Click the blue ‘Create Knative Serving’ button, check the YAML, and click ‘Create’:
-
In the ‘Operator Details’ view for the Serverless operator, you can now see the Knative Serving instance created. But it seems to stay in Status ‘Unknown’:
-
Click on the Name ‘knative-serving’, on in the ‘Overview’ scroll down to Conditions. You can see all 4 conditions are true, including ‘Ready’: In the ‘Resources’ tab you will see many deployments, services, pods, all should be ‘Created’ or ‘Running’.
We will not look into Knative Eventing in this workshop.
Continue with the next part Deploy a Knative Service