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
Copy file name to clipboardExpand all lines: pages/serverless-containers/how-to/deploy-container.mdx
+64-20Lines changed: 64 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,16 +40,38 @@ You can deploy a container from the [Scaleway Container Registry](/container-reg
40
40
<Messagetype="note">
41
41
Available memory depends on allocated vCPU, and the maximum ephemeral storage value depends on allocated memory.
42
42
</Message>
43
-
- Set your [scaling](/serverless-containers/concepts/#scaling) preferences, or leave them at default values. The Scaleway platform automatically scales the number of available instances of your container to match the incoming load, depending on the settings you define here.
44
-
- Click **Advanced options** to define any [environment variables](/serverless-containers/concepts/#environment-variables) you want to inject into your container. For each environment variable, click **+Add variable** and enter the key/value pair.
45
-
- Add [secrets](/serverless-containers/concepts/#secrets) for your container. Secrets are environment variables that are injected into your container, but the values are not retained or displayed by Scaleway after initial validation.
46
-
<Messagetype="note">
47
-
Encode your environment variables and secrets to `base64` if they are too large, and contain carriage returns.
48
-
</Message>
49
-
- Set the desired [privacy policy](/serverless-containers/concepts/#privacy-policy) for your container. This defines whether container invocation may be done anonymously (**public**) or only via an authentication mechanism provided by the [Scaleway API](https://www.scaleway.com/en/developers/api/serverless-containers/#authentication) (**private**).
50
-
- Set a custom [timeout](/serverless-containers/concepts/#timeout) for your container.
51
-
- Verify the **estimated cost**.
52
-
5. Click **Deploy container** to finish.
43
+
5. Set your [autoscaling](/serverless-containers/concepts/#autoscaling) preferences:
44
+
-**Request concurrency**: your container automatically scales up/down within the minimum and maximum values entered based on the number of concurrent request received on each active instance of your container.
45
+
-**CPU percentage**: your container automatically scales up/down within the minimum and maximum values entered based on the CPU load.
46
+
-**RAM percentage**: your container automatically scales up/down within the minimum and maximum values entered based on the RAM used.
47
+
6. In the **Advanced options** section set the following:
48
+
<Tabs>
49
+
<TabsTablabel="Data">
50
+
- Declare [environment variables](/serverless-containers/concepts/#environment-variables) you want to inject into your container. For each environment variable, click **+Add variable** and enter the key/value pair.
51
+
- Declare [secrets](/serverless-containers/concepts/#secrets) for your container. Secrets are environment variables that are injected into your container, but the values are not retained or displayed by Scaleway after initial validation.
52
+
<Messagetype="note">
53
+
Encode your environment variables and secrets to `base64` if they are too large, and contain carriage returns.
54
+
</Message>
55
+
</TabsTab>
56
+
<TabsTablabel="Security">
57
+
- Set the desired [privacy policy](/serverless-containers/concepts/#privacy-policy) for your container. This defines whether container invocation may be done anonymously (**public**) or only via an authentication mechanism provided by the [Scaleway API](https://www.scaleway.com/en/developers/api/serverless-containers/#authentication) (**private**).
58
+
- Tick the box under **HTTPS connections only** to prevent your container from being called from insecure HTTP connections.
59
+
</TabsTab>
60
+
<TabsTablabel="Requests">
61
+
- Set a custom [timeout](/serverless-containers/concepts/#timeout) for the duration of the requests received by your container.
62
+
- Tick the box under [HTTP protocol](/serverless-containers/concepts/#protocol) to listen to HTTP/2 requests if it is required by your application. Otherwise, we recommend you use HTTP/1.
63
+
</TabsTab>
64
+
<TabsTablabel="Performances">
65
+
- Select a [sandbox](/serverless-containers/concepts/#sandbox) version:
66
+
- Sandbox v2 for shorter cold starts (recommended).
67
+
- Sandbox v1 if you require full compatibility with the Linux system call interface (legacy).
68
+
</TabsTab>
69
+
<TabsTablabel="Storage">
70
+
- Modify the [ephemeral storage](/serverless-containers/concepts/#ephemeral-storage) according to your needs.
71
+
</TabsTab>
72
+
</Tabs>
73
+
7. Verify the **estimated cost**.
74
+
8. Click **Deploy container** to finish.
53
75
54
76
## Deploy from an external container registry
55
77
@@ -75,13 +97,35 @@ Private external container registries are currently not supported.
75
97
<Messagetype="note">
76
98
Available memory depends on allocated vCPU, and maximum ephemeral storage value depends on allocated memory.
77
99
</Message>
78
-
- Set your [scaling](/serverless-containers/concepts/#scaling) preferences, or leave them at default values. The Scaleway platform automatically scales the number of available instances of your container to match the incoming load, depending on the settings you define here.
79
-
- Click **Advanced options** to define any [environment variables](/serverless-containers/concepts/#environment-variables) you want to inject into your container. For each environment variable, click **+Add variable** and enter the key/value pair.
80
-
- Add [secrets](/serverless-containers/concepts/#secrets) for your container. Secrets are environment variables that are injected into your container, but the values are not retained or displayed by Scaleway after initial validation.
81
-
<Messagetype="note">
82
-
Encode your environment variables and secrets to `base64` if they are too large, and contain carriage returns.
83
-
</Message>
84
-
- Set the desired [privacy policy](/serverless-containers/concepts/#privacy-policy) for your container. This defines whether container invocation may be done anonymously (**public**) or only via an authentication mechanism provided by the [Scaleway API](https://www.scaleway.com/en/developers/api/serverless-containers/#authentication) (**private**).
85
-
- Set a custom [timeout](/serverless-containers/concepts/#timeout) for your container.
86
-
- Verify the **estimated cost**.
87
-
5. Click **Deploy container** to finish.
100
+
5. Set your [autoscaling](/serverless-containers/concepts/#autoscaling) preferences:
101
+
-**Request concurrency**: your container automatically scales up/down within the minimum and maximum values entered based on the number of concurrent request received on each active instance of your container.
102
+
-**CPU percentage**: your container automatically scales up/down within the minimum and maximum values entered based on the CPU load.
103
+
-**RAM percentage**: your container automatically scales up/down within the minimum and maximum values entered based on the RAM used.
104
+
6. In the **Advanced options** section set the following:
105
+
<Tabs>
106
+
<TabsTablabel="Data">
107
+
- Declare [environment variables](/serverless-containers/concepts/#environment-variables) you want to inject into your container. For each environment variable, click **+Add variable** and enter the key/value pair.
108
+
- Declare [secrets](/serverless-containers/concepts/#secrets) for your container. Secrets are environment variables that are injected into your container, but the values are not retained or displayed by Scaleway after initial validation.
109
+
<Messagetype="note">
110
+
Encode your environment variables and secrets to `base64` if they are too large, and contain carriage returns.
111
+
</Message>
112
+
</TabsTab>
113
+
<TabsTablabel="Security">
114
+
- Set the desired [privacy policy](/serverless-containers/concepts/#privacy-policy) for your container. This defines whether container invocation may be done anonymously (**public**) or only via an authentication mechanism provided by the [Scaleway API](https://www.scaleway.com/en/developers/api/serverless-containers/#authentication) (**private**).
115
+
- Tick the box under **HTTPS connections only** to prevent your container from being called from insecure HTTP connections.
116
+
</TabsTab>
117
+
<TabsTablabel="Requests">
118
+
- Set a custom [timeout](/serverless-containers/concepts/#timeout) for the duration of the requests received by your container.
119
+
- Tick the box under [HTTP protocol](/serverless-containers/concepts/#protocol) to listen to HTTP/2 requests if it is required by your application. Otherwise, we recommend you use HTTP/1.
120
+
</TabsTab>
121
+
<TabsTablabel="Performances">
122
+
- Select a [sandbox](/serverless-containers/concepts/#sandbox) version:
123
+
- Sandbox v2 for shorter cold starts (recommended).
124
+
- Sandbox v1 if you require full compatibility with the Linux system call interface (legacy).
125
+
</TabsTab>
126
+
<TabsTablabel="Storage">
127
+
- Modify the [ephemeral storage](/serverless-containers/concepts/#ephemeral-storage) according to your needs.
0 commit comments