From f7c0660e11621f0b4607a938d882ca36f4919f70 Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Wed, 4 Jun 2025 12:21:15 +0200 Subject: [PATCH 1/4] docs(srv): add concepts for commands and arguments MTA-6077 --- pages/serverless-containers/concepts.mdx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/pages/serverless-containers/concepts.mdx b/pages/serverless-containers/concepts.mdx index b972daf1ed..422a4d19a0 100644 --- a/pages/serverless-containers/concepts.mdx +++ b/pages/serverless-containers/concepts.mdx @@ -12,6 +12,10 @@ categories: - serverless --- +## Arguments + +See [Commands and arguments](#commands-and-arguments) below. + ## Autoscaling 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: [How to reduce cold starts](/serverless-containers/faq/#how-can-i-reduce-the-cold-starts-of-serverless-containers) +## Commands and arguments + +Serverless Containers allows you to customize the `command` and `args` Kubernetes 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/). + +- The `command` Kubernetes instruction defines the command, process, or script executed when your container starts. +- The `argument` Kubernetes instruction defines the arguments passed to the `command` instruction. Arguments can be passed as environment variables, as shown in the example below. + +**Example** + +```yaml +env: +- name: MESSAGE + value: "hello world" +command: ["/bin/echo"] +args: ["$(MESSAGE)"] +``` + +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. + ## Concurrency 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. From c04a44966acf59856d75bc3b325dcf0739a450f2 Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Wed, 4 Jun 2025 12:23:05 +0200 Subject: [PATCH 2/4] docs(srv): update --- pages/serverless-containers/concepts.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/serverless-containers/concepts.mdx b/pages/serverless-containers/concepts.mdx index 422a4d19a0..30bd1a3498 100644 --- a/pages/serverless-containers/concepts.mdx +++ b/pages/serverless-containers/concepts.mdx @@ -44,7 +44,7 @@ The startup process steps are: Serverless Containers allows you to customize the `command` and `args` Kubernetes 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/). - The `command` Kubernetes instruction defines the command, process, or script executed when your container starts. -- The `argument` Kubernetes instruction defines the arguments passed to the `command` instruction. Arguments can be passed as environment variables, as shown in the example below. +- The `args` Kubernetes instruction defines the arguments passed to the `command` instruction. Arguments can be passed as environment variables, as shown in the example below. **Example** From 95c6da3e9c4dc42165afa381f644caa4eb19cbe7 Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Wed, 4 Jun 2025 15:39:56 +0200 Subject: [PATCH 3/4] Apply suggestions from code review Co-authored-by: Thomas TACQUET --- pages/serverless-containers/concepts.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/serverless-containers/concepts.mdx b/pages/serverless-containers/concepts.mdx index 30bd1a3498..2f4f020635 100644 --- a/pages/serverless-containers/concepts.mdx +++ b/pages/serverless-containers/concepts.mdx @@ -41,10 +41,10 @@ The startup process steps are: ## Commands and arguments -Serverless Containers allows you to customize the `command` and `args` Kubernetes 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/). +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/). -- The `command` Kubernetes instruction defines the command, process, or script executed when your container starts. -- The `args` Kubernetes instruction defines the arguments passed to the `command` instruction. Arguments can be passed as environment variables, as shown in the example below. +- The `command` instruction defines the command, process, or script executed when your container starts. +- The `args` instruction defines the arguments passed to the `command` instruction. Arguments can be passed as environment variables, as shown in the example below. **Example** From 0ca0b6e79dbb14176c500829672d4946f729da67 Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Wed, 4 Jun 2025 15:40:41 +0200 Subject: [PATCH 4/4] docs(srv): update --- pages/serverless-containers/concepts.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/serverless-containers/concepts.mdx b/pages/serverless-containers/concepts.mdx index 2f4f020635..9165f1cc7b 100644 --- a/pages/serverless-containers/concepts.mdx +++ b/pages/serverless-containers/concepts.mdx @@ -56,7 +56,7 @@ command: ["/bin/echo"] args: ["$(MESSAGE)"] ``` -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. +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. ## Concurrency