-
Notifications
You must be signed in to change notification settings - Fork 258
docs(srv): merge create/manage/delete containers namespace MTA-5252 #3982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
caa0ad0
docs(srv): merge create/manage/delete containers namespace MTA-5252
SamyOubouaziz b1134d9
docs(srv): update functions do
SamyOubouaziz a06a869
docs(srv): update
SamyOubouaziz 0945715
docs(srv): update
SamyOubouaziz ccc08e2
Update serverless/containers/concepts.mdx
SamyOubouaziz ceffd2c
Apply suggestions from code review
SamyOubouaziz ced1988
Update serverless/containers/quickstart.mdx
SamyOubouaziz c2e81fb
Update serverless/functions/concepts.mdx
SamyOubouaziz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
serverless/containers/how-to/create-a-containers-namespace.mdx
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
serverless/containers/how-to/create-manage-delete-containers-namespace.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| --- | ||
| meta: | ||
| title: How to create, manage and delete a Containers namespace | ||
| description: Create, manage, and delete namespaces in Scaleway Serverless Containers. | ||
| content: | ||
| h1: How to create, manage, and delete a Containers namespace | ||
| paragraph: Create, manage, and delete namespaces in Scaleway Serverless Containers. | ||
| tags: container namespace manage create delete environment variable secret | ||
| dates: | ||
| validation: 2024-11-14 | ||
| posted: 2021-05-26 | ||
| categories: | ||
| - serverless | ||
| - containers | ||
| --- | ||
|
|
||
| This page shows you how to create and manage a Serverless Containers namespace. [Namespaces](/serverless/containers/concepts/#namespace) allow you to group your containers and share environment variables between them. | ||
|
|
||
| <Macro id="requirements" /> | ||
|
|
||
| - A Scaleway account logged into the [console](https://console.scaleway.com) | ||
| - [Owner](/identity-and-access-management/iam/concepts/#owner) status or [IAM permissions](/identity-and-access-management/iam/concepts/#permission) allowing you to perform actions in the intended Organization | ||
|
|
||
| ## Creating a Serverless Containers namespace | ||
|
|
||
| 1. Click **Containers** in the **Serverless** section of the side menu. The list of your containers namespaces displays. | ||
| 2. Click **Create namespace**. If you have no existing Serverless Containers resources in your current Project, click **Deploy container**. | ||
| 3. Complete the following steps in the wizard: | ||
| - Enter a **name**, and optionally a **description** for your namespace. The name must only contain alphanumeric characters and dashes. | ||
| - Choose a **region**, which is the geographical location in which your namespace will be deployed. | ||
| - Enter any **environment variables** required for your namespace. Environment variables configured in a namespace will be available in all containers/apps within the same namespace. For each environment variable, click **+Add new variable** and enter the key / value pair. | ||
| - Set secret environment variables (optional). **Secrets** are environment variables that are injected into your container and stored securely, but not displayed in the console after initial validation. Add a **key** and a **value**. | ||
| - Verify the **estimated cost**. | ||
| 4. Click **Create namespace only** to finish, or click **Create namespace and add container** if you want to [deploy a container](/serverless/containers/how-to/deploy-container/) next. | ||
|
|
||
| ## Managing a Serverless Containers namespace | ||
|
|
||
| ### Generating and managing access tokens | ||
|
|
||
| The Scaleway console allows you to generate authentication tokens to grant users and applications access to the containers present in your namespace. | ||
|
|
||
| 1. Click **Containers** in the **Serverless** section of the side menu. The containers page displays. | ||
|
|
||
| 2. Click the containers namespace you want to manage. | ||
|
|
||
| 3. Click the **Namespace settings** tab. Information about the region, registry endpoint and description of your namespace display. | ||
|
|
||
| 4. Click **+ Generate token** to create an access token for this namespace. | ||
|
|
||
| <Message type="important"> | ||
| The token key will only be available for copy once. Make sure to store it securely before leaving the page. | ||
| </Message> | ||
|
|
||
| Private containers present in your namespace now require the authentication token to be executed, as shown below: | ||
| ```curl | ||
| curl -H "X-Auth-Token: <YOUR_NAMESPACE_TOKEN>" <YOUR_CONTAINER_ENDPOINT> | ||
| ``` | ||
|
|
||
| ### Adding and managing environment variables and secrets | ||
|
|
||
| The Scaleway console allows you to define environment variables and secrets at the namespace-level to pass to the containers present in the namespace. | ||
|
|
||
| 1. Click **Containers** in the **Serverless** section of the side menu. The containers page displays. | ||
|
|
||
| 2. Click the containers namespace you want to manage. | ||
|
|
||
| 3. Click the **Namespace settings** tab. Information about the region, registry endpoint and description of your namespace display. | ||
|
|
||
| 4. Add environment variables by clicking the <Icon name="edit" /> icon, **+ Add variable**, entering the key/value pair, and clicking <Icon name="validate"/>. | ||
|
|
||
| 5. Add secrets by clicking the <Icon name="edit" /> icon, **+ Add secret**, entering the key/value pair, and clicking <Icon name="validate"/>. | ||
|
|
||
| The environment variables and secrets defined will now be passed to your containers. Every container in a **ready** state is redeployed to take the change into account. | ||
|
|
||
| ## Deleting a Serverless Containers namespace | ||
|
|
||
| <Message type="important"> | ||
| - This action will permanently delete your namespace and all your containers will be lost. | ||
| - This action is irreversible. | ||
| - The Container Registry namespace associated with your Serverless Containers namespace will be deleted. | ||
| </Message> | ||
|
|
||
| 1. Click **Containers** in the **Serverless** section of the side menu. The containers page displays. | ||
|
|
||
| 2. Click the <Icon name="more" /> icon next to the namespace you want to delete, and select **Delete** from the drop-down menu. | ||
|
|
||
| 3. Type **DELETE** in the pop-up that asks you to confirm the action, then click **Delete namespace**. | ||
|
|
||
| <Message type="tip"> | ||
| You can also delete a namespace from the **Namespace settings** tab. | ||
| </Message> |
39 changes: 0 additions & 39 deletions
39
serverless/containers/how-to/delete-a-containers-namespace.mdx
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
serverless/containers/how-to/manage-a-containers-namespace.mdx
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.