You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* For more information about Knative routing settings for {ServerlessProductName}, see xref:../../serverless/develop/serverless-configuring-routes.adoc#serverless-configuring-routes[Routing].
78
+
79
+
* For more information about domain mapping settings for {ServerlessProductName}, see xref:../../serverless/security/serverless-custom-domains.adoc#serverless-custom-domains[Configuring a custom domain for a Knative service].
80
+
81
+
* For more information about Knative autoscaling settings for {ServerlessProductName}, see xref:../../serverless/develop/serverless-autoscaling-developer.adoc#serverless-autoscaling-developer[Autoscaling].
= Importing a codebase from Git to create an application
@@ -39,7 +43,6 @@ The resource name must be unique in a namespace. Modify the resource name if you
39
43
* *Deployment*, to create an application in plain Kubernetes style.
40
44
* *Deployment Config*, to create an {product-title} style application.
41
45
* *Serverless Deployment*, to create a Knative service.
42
-
43
46
+
44
47
[NOTE]
45
48
====
@@ -52,21 +55,8 @@ The *Serverless Deployment* option is displayed in the *Import from git* form on
52
55
53
56
. Optional: You can use the following advanced options to further customize your application:
54
57
55
-
Routing::
56
-
Click the *Routing* link to:
57
-
* Customize the hostname for the route.
58
-
* Specify the path the router watches.
59
-
* Select the target port for the traffic from the drop-down list.
60
-
* Secure your route by selecting the *Secure Route* check box. Select the required TLS termination type and set a policy for insecure traffic from the respective drop-down lists.
61
-
+
62
-
For serverless applications, the Knative service manages all the routing options above. However, you can customize the target port for traffic, if required. If the target port is not specified, the default port of `8080` is used.
63
-
64
-
Domain mapping::
65
-
If you are creating a *Serverless Deployment*, you can add a custom domain mapping to the Knative service during creation.
66
-
+
67
-
* In the *Advanced options* section, click *Show advanced Routing options*.
68
-
** If the domain mapping CR that you want to map to the service already exists, you can select it from the *Domain mapping* drop-down menu.
69
-
** If you want to create a new domain mapping CR, type the domain name into the box, and select the *Create* option. For example, if you type in `example.com`, the *Create* option is *Create "example.com"*.
Click the *Health Checks* link to add Readiness, Liveness, and Startup probes to your application. All the probes have prepopulated default data; you can add the probes with the default data or customize it as required.
@@ -79,20 +69,12 @@ To customize the health probes:
79
69
+
80
70
For each of the probes, you can specify the request type - *HTTP GET*, *Container Command*, or *TCP Socket*, from the drop-down list. The form changes as per the selected request type. You can then modify the default values for the other parameters, such as the success and failure thresholds for the probe, number of seconds before performing the first probe after the container starts, frequency of the probe, and the timeout value.
81
71
82
-
83
72
Build Configuration and Deployment::
84
73
Click the *Build Configuration* and *Deployment* links to see the respective configuration options. Some options are selected by default; you can customize them further by adding the necessary triggers and environment variables.
85
74
+
86
75
For serverless applications, the *Deployment* option is not displayed as the Knative configuration resource maintains the desired state for your deployment instead of a `DeploymentConfig` resource.
87
76
88
-
Scaling::
89
-
Click the *Scaling* link to define the number of pods or instances of the application you want to deploy initially.
90
-
+
91
-
For serverless applications, you can:
92
-
93
-
* Set the upper and lower limit for the number of pods that can be set by the autoscaler. If the lower limit is not specified, it defaults to zero.
94
-
* Define the soft limit for the required number of concurrent requests per instance of the application at a given time. It is the recommended configuration for autoscaling. If not specified, it takes the value specified in the cluster configuration.
95
-
* Define the hard limit for the number of concurrent requests allowed per instance of the application at a given time. This is configured in the revision template. If not specified, it defaults to the value specified in the cluster configuration.
77
+
include::snippets/scaling-odc.adoc[]
96
78
97
79
Resource Limit::
98
80
Click the *Resource Limit* link to set the amount of *CPU* and *Memory* resources a container is guaranteed or allowed to use when running.
The maximum number of replicas that can serve an application is determined by the `maxScale` annotation. If the `maxScale` annotation is not set, there is no upper limit for the number of replicas created.
0 commit comments