-
Notifications
You must be signed in to change notification settings - Fork 258
feat(srv): add faas/caas x VPC doc MTA-6202 #5185
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 7 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f874176
feat(srv): add faas/caas x VPC doc MTA-6202
SamyOubouaziz 15e5edb
feat(srv): update
SamyOubouaziz dc66149
feat(srv): update
SamyOubouaziz bfe7cf2
feat(srv): update
SamyOubouaziz be4c036
feat(srv): update
SamyOubouaziz fd4a8a2
feat(srv): update
SamyOubouaziz 5fdaeff
feat(srv): update
SamyOubouaziz 799d505
Update pages/serverless-containers/faq.mdx
SamyOubouaziz 41847b3
Update pages/serverless-containers/how-to/use-private-networks.mdx
SamyOubouaziz 2ffecab
Update pages/serverless-containers/how-to/use-private-networks.mdx
SamyOubouaziz bd47d24
Apply suggestions from code review
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
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
94 changes: 94 additions & 0 deletions
94
pages/serverless-containers/how-to/use-private-networks.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,94 @@ | ||
| --- | ||
| meta: | ||
| title: How to use Private Networks with your Serverless Containers | ||
| description: This page explains how to use Private Networks for Scaleway Serverless Containers | ||
| content: | ||
| h1: How to use Private Networks with your Serverless Containers | ||
| paragraph: This page explains how to use Private Networks for Scaleway Serverless Containers | ||
| tags: private-networks private networks instance containers vpc | ||
| dates: | ||
| validation: 2025-06-25 | ||
| posted: 2021-06-25 | ||
| categories: | ||
| - serverless | ||
| --- | ||
|
|
||
| [Private Networks](/serverless-containers/concepts/#private-networks) allow your Serverless Containers to communicate in an isolated and secure network without needing to be connected to the public internet. Each container can be connected to one or several Private Networks, letting you build your own network topologies. | ||
|
|
||
| For full information about Scaleway Private Networks and VPC, see our [dedicated documentation](/vpc/) and [best practice guide](/vpc/reference-content/getting-most-private-networks/). | ||
SamyOubouaziz marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| <Message type="important"> | ||
| The Private Networks feature can only be enabled on newly created namespaces. Existing namespaces that do not have the feature enabled cannot be integrated in a Private Network. | ||
| </Message> | ||
|
|
||
| <Macro id="requirements" /> | ||
|
|
||
| - A Scaleway account logged into the [console](https://console.scaleway.com) | ||
| - [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization | ||
| - [Created a Private Network](/vpc/how-to/create-private-network/) | ||
|
|
||
|
|
||
| ## How to create a Private Network | ||
|
|
||
| This action must be carried out from the VPC section of the console. Follow the procedure detailed in our [dedicated VPC documentation](/vpc/how-to/create-private-network/). | ||
|
|
||
| ## How to create a Private Networks-enabled namespace | ||
|
|
||
| Before attaching a Private Network to a Serverless Container, you must create it within a namespace with the Private Networks feature enabled. | ||
|
|
||
| 1. Click **Containers** in the **Serverless** section of the side menu. The containers page displays. | ||
|
|
||
| 2. Click **+ Create namespace**. If you have no existing Serverless Containers resources in your current Project, click **Create a container**. The containers namespace creation wizard displays. | ||
|
|
||
| 3. Complete the following steps in the wizard: | ||
| - Enter a **name** or use the automatically generated one. The name can only contain lowercase alphanumeric characters and dashes. | ||
| - Enter an optional **description** and **tags**. | ||
| - Choose a **region**, which is the geographical location in which your namespace will be deployed. | ||
| - Tick the **Enable VPC support** box. This parameter cannot be edited once the the namespace is created. | ||
SamyOubouaziz marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
SamyOubouaziz marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - Click **+ Add advanced options** to define any **environment variables** you want to inject into your container. For each environment variable, click **+ Add variable** and enter the key/value pair. | ||
| - Set optional secret environment variables. **Secrets** are environment variables which are injected into your container and stored securely, but not displayed in the console after initial validation. Add a **key** and a **value**. | ||
| 4. Click **Create namespace only** to finish, or click **Create namespace and add a container** if you want to [create a container](/serverless-containers/how-to/create-a-container/) next. | ||
|
|
||
| ## How to attach a Serverless Container to a Private Network | ||
|
|
||
| <Tabs id="private-network-containers"> | ||
| <TabsTab label="Existing container"> | ||
| 1. Click **Containers** in the **Serverless** section of the side menu. The containers page displays. | ||
| 2. Click the relevant containers namespace. | ||
| 3. Click the name of the container you want to manage. | ||
| 4. Open the **Settings** tab, then scroll to the **Advanced options** section. | ||
| 5. In the **VPC** tab, select a Private Network from the dropdown menu. | ||
| 6. Click **Save container settings**. | ||
|
|
||
| Your container is redeployed, and is now attached to the selected Private Network. | ||
| </TabsTab> | ||
| <TabsTab label="New container"> | ||
| 1. Click **Containers** in the **Serverless** section of the side menu. The containers page displays. | ||
| 2. Click the **Private Networks-enabled** containers namespace in which you want to create your container. | ||
| 3. Click **+ Create container**. The container creation wizard displays. | ||
| 4. Scroll to the **Advanced options** section. | ||
| 5. In the **VPC** tab, select a Private Network from the dropdown menu. | ||
| 6. Configure the other parameters of your container, then click **Create container**. Refer to the [How to create a container](/serverless-containers/how-to/create-a-container/) for more information. | ||
|
|
||
| Your new container is deployed, and is attached to the selected Private Network. | ||
| </TabsTab> | ||
| </Tabs> | ||
|
|
||
| ## How to detach a container from a Private Network | ||
|
|
||
| 1. Click **Containers** in the **Serverless** section of the side menu. The containers page displays. | ||
| 2. Click the relevant containers namespace. | ||
| 3. Click the name of the container you want to manage. | ||
| 4. Open the **Settings** tab, then scroll to the **Advanced options** section. | ||
| 5. In the **VPC** tab, click the <Icon name="unlink" /> icon next to the Private Network attached to your container. | ||
| 6. Click **Save container settings**. | ||
|
|
||
| Your container is redeployed and is now detached from the Private Network. | ||
|
|
||
| ## How to delete a Private Network | ||
|
|
||
| <Message type="note"> | ||
| Before deleting a Private Network, you must [detach](/vpc/how-to/attach-resources-to-pn/#how-to-detach-a-resource-from-a-private-network) all resources attached to it. | ||
| </Message> | ||
|
|
||
| This must be carried out from the VPC section of the console. Follow the procedure detailed in our [dedicated VPC documentation](/vpc/how-to/delete-private-network/). | ||
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.