mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
22 lines
831 B
Plaintext
22 lines
831 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * serverless/getting-started-knative-services.adoc
|
|
|
|
[id="deploying-serverless-apps_{context}"]
|
|
= Deploying a serverless application
|
|
|
|
To deploy a serverless application, you must apply the `service.yaml` file.
|
|
|
|
.Procedure
|
|
|
|
. Navigate to the directory where the `service.yaml` file is contained.
|
|
. Deploy the application by applying the `service.yaml` file.
|
|
+
|
|
----
|
|
$ oc apply --filename service.yaml
|
|
----
|
|
|
|
Now that service has been created and the application has been deployed, Knative will create a new immutable revision for this version of the application.
|
|
|
|
Knative will also perform network programming to create a route, ingress, service, and load balancer for your application, and will automatically scale your pods up and down based on traffic, including inactive pods.
|