1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/serverless-installing-knative-serving.adoc
2020-02-06 00:00:50 +00:00

56 lines
1.2 KiB
Plaintext

// Module included in the following assemblies:
//
// serverless/installing-openshift-serverless.adoc
[id="installing-knative-serving_{context}"]
= Installing Knative Serving
You must create a `KnativeServing` object to install Knative Serving using the {ServerlessOperatorName}.
[IMPORTANT]
====
You must create the `KnativeServing` object in the `knative-serving` namespace, as shown in the sample YAML, or it is ignored.
====
[source,yaml]
.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 {ServerlessOperatorName}.
.Procedure
. Copy the sample YAML file into `serving.yaml` and apply it using:
+
----
$ oc apply -f serving.yaml
----
+
. Verify the installation is complete by using the 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
----