meta | content | tags | dates | categories | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
deploy container create scaleway-registry docker image external registry public |
|
|
This page shows you how to deploy Serverless Containers using the Scaleway console.
You can deploy a container from the Scaleway Container Registry, or any other public container registry, such as Docker Hub, AWS Container registries, GitLab container registry, etc.
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- Created a containers namespace
- Created a Container Registry namespace and pushed a container image to it
- Click Containers in the Serverless section of the side menu. The containers page displays.
- Click the relevant container's namespace.
- Click Deploy container. The container creation wizard displays.
- Complete the following steps in the wizard:
- Select the Scaleway Container Registry.
- Choose an image from your Container Registry.
- Select the required Container Registry namespace from the drop-down list, and then select the container and tag.
- Choose the port your container is listening on. We recommend configuring your container to listen on the
$PORT
environment variable. - Choose a name for your container and, optionally, a description. The name must only contain alphanumeric characters and dashes.
- Choose the resources to be allocated to your container at runtime. These define the performance characteristics of your container. Available memory depends on allocated vCPU, and the maximum ephemeral storage value depends on allocated memory.
- Set your autoscaling preferences:
- Request concurrency: your container automatically scales up/down within the minimum and maximum values entered based on the number of concurrent requests received on each active instance of your container.
- CPU percentage: your container automatically scales up/down within the minimum and maximum values entered based on the CPU load.
- RAM percentage: your container automatically scales up/down within the minimum and maximum values entered based on the RAM used.
- In the Advanced options section, set the following:
- Declare environment variables you want to inject into your container. For each environment variable, click +Add variable and enter the key/value pair.
- Declare 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.
Encode your environment variables and secrets to
base64
if they are too large, and contain carriage returns.
- Verify the estimated cost.
- Click Deploy container to finish.
Scaleway Serverless Containers allows you to deploy containers from external public container registries, such as Docker Hub, AWS container registries, GitLab container registry, etc.
Private external container registries are currently not supported.
- Click Containers in the Serverless section of the side menu. The containers page displays.
- Click the relevant container's namespace.
- Click Deploy container. The container creation wizard displays.
- Complete the following steps in the wizard:
- Select the External container registry.
- Enter the public container image URL provided by the external registry. For example:
nginx:latest
to deploy the latest nginx image from Docker Hubghcr.io/namespace/image
to deploy an image from GitHub Container Registry
- Choose the port your container is listening on. We recommend configuring your container to listen on the
$PORT
environment variable. - Choose a name for your container and, optionally, a description. The name must only contain alphanumeric characters and dashes.
- Choose the resources to be allocated to your container at runtime. These define the performance characteristics of your container. Available memory depends on allocated vCPU, and the maximum ephemeral storage value depends on allocated memory.
- Set your autoscaling preferences:
- Request concurrency: your container automatically scales up/down within the minimum and maximum values entered based on the number of concurrent requests received on each active instance of your container.
- CPU percentage: your container automatically scales up/down within the minimum and maximum values entered based on the CPU load.
- RAM percentage: your container automatically scales up/down within the minimum and maximum values entered based on the RAM used.
- In the Advanced options section, set the following:
- Declare environment variables you want to inject into your container. For each environment variable, click +Add variable and enter the key/value pair.
- Declare 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.
Encode your environment variables and secrets to
base64
if they are too large, and contain carriage returns.
- Verify the estimated cost.
- Click Deploy container to finish.