Skip to content

Commit 943882c

Browse files
docs(srv): add concepts for commands and arguments MTA-6077 (#5064)
* docs(srv): add concepts for commands and arguments MTA-6077 * docs(srv): update * Apply suggestions from code review Co-authored-by: Thomas TACQUET <[email protected]> * docs(srv): update --------- Co-authored-by: Thomas TACQUET <[email protected]>
1 parent 7e69e92 commit 943882c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

pages/serverless-containers/concepts.mdx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ categories:
1212
- serverless
1313
---
1414

15+
## Arguments
16+
17+
See [Commands and arguments](#commands-and-arguments) below.
18+
1519
## Autoscaling
1620

1721
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:
3539

3640
[How to reduce cold starts](/serverless-containers/faq/#how-can-i-reduce-the-cold-starts-of-serverless-containers)
3741

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+
3861
## Concurrency
3962
4063
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

Comments
 (0)