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/concepts.mdx
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,10 @@ categories:
12
12
- serverless
13
13
---
14
14
15
+
## Arguments
16
+
17
+
See [Commands and arguments](#commands-and-arguments) below.
18
+
15
19
## Autoscaling
16
20
17
21
Autoscaling refers to the ability of Serverless Containers to automatically adjust the number of instances without manual intervention.
@@ -35,6 +39,25 @@ The startup process steps are:
35
39
36
40
[How to reduce cold starts](/serverless-containers/faq/#how-can-i-reduce-the-cold-starts-of-serverless-containers)
37
41
42
+
## Commands and arguments
43
+
44
+
Serverless Containers allows you to customize the `command` and `args` instructions of your container image directly from the [Scaleway console](https://console.scaleway.com) and from the [Scaleway API](https://www.scaleway.com/en/developers/api/serverless-containers/).
45
+
46
+
- The `command` instruction defines the command, process, or script executed when your container starts.
47
+
- The `args` instruction defines the arguments passed to the `command` instruction. Arguments can be passed as environment variables, as shown in the example below.
48
+
49
+
**Example**
50
+
51
+
```yaml
52
+
env:
53
+
- name: MESSAGE
54
+
value: "hello world"
55
+
command: ["/bin/echo"]
56
+
args: ["$(MESSAGE)"]
57
+
```
58
+
59
+
Refer to the [official Kubernetes documentation](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/) for more information on commands and arguments behavior.
60
+
38
61
## Concurrency
39
62
40
63
Concurrency defines the number of simultaneous requests a single instance of your container can handle at the same time. Once the number of incoming requests exceeds this value, your container scales according to your parameters.
0 commit comments