Skip to content

Commit ed41fc9

Browse files
committed
docs(srv): update
1 parent 5094561 commit ed41fc9

File tree

1 file changed

+64
-20
lines changed

1 file changed

+64
-20
lines changed

pages/serverless-containers/how-to/deploy-container.mdx

Lines changed: 64 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,38 @@ You can deploy a container from the [Scaleway Container Registry](/container-reg
4040
<Message type="note">
4141
Available memory depends on allocated vCPU, and the maximum ephemeral storage value depends on allocated memory.
4242
</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-
<Message type="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+
<TabsTab label="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+
<Message type="note">
53+
Encode your environment variables and secrets to `base64` if they are too large, and contain carriage returns.
54+
</Message>
55+
</TabsTab>
56+
<TabsTab label="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+
<TabsTab label="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+
<TabsTab label="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+
<TabsTab label="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.
5375

5476
## Deploy from an external container registry
5577

@@ -75,13 +97,35 @@ Private external container registries are currently not supported.
7597
<Message type="note">
7698
Available memory depends on allocated vCPU, and maximum ephemeral storage value depends on allocated memory.
7799
</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-
<Message type="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+
<TabsTab label="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+
<Message type="note">
110+
Encode your environment variables and secrets to `base64` if they are too large, and contain carriage returns.
111+
</Message>
112+
</TabsTab>
113+
<TabsTab label="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+
<TabsTab label="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+
<TabsTab label="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+
<TabsTab label="Storage">
127+
- Modify the [ephemeral storage](/serverless-containers/concepts/#ephemeral-storage) according to your needs.
128+
</TabsTab>
129+
</Tabs>
130+
7. Verify the **estimated cost**.
131+
8. Click **Deploy container** to finish.

0 commit comments

Comments
 (0)