Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .vscode/aiven.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,14 @@
""
]
},
"Insert Terraform docs link": {
"prefix": ["terraform docs"],
"body": [
"Use the `FIELD_NAME` attribute in",
"[your `aiven_RESOURCE_NAME` resource](https://registry.terraform.io/providers/aiven/aiven/latest/docs/resources/organization_project).",
""
]
},
"Karapace": {
"scope": "markdown",
"prefix": "karapace",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ deployed without any special configuration:
## Service ports

Aiven service ports are assigned randomly as offsets of a base port
number. The base port number is set per project. That means that a
number. The base port number
[is set per project](/docs/platform/howto/configure-project-base-port). That means that a
PostgreSQL® service and a MySQL® service in the same project will have
closely resembling or even overlapping port numbers. These ports are in
the 10000 to 30000 range. If a base port number is not defined, the
Expand Down
27 changes: 27 additions & 0 deletions docs/platform/howto/configure-project-base-port.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: Configure project base port
---

import ConsoleLabel from "@site/src/components/ConsoleIcons";
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

The base port number for a project determines the Aiven service ports. The base port is randomly assigned, but you can also configure the port number for a project.

To set the base port number for a project:

<Tabs groupId="group1">
<TabItem value="console" label="Console" default>

1. In the project, click <ConsoleLabel name="projectsettings"/>.
1. In the **Networking settings** section, enter a **Base port** number.
1. Click **Save changes**.

</TabItem>
<TabItem value="terraform" label="Terraform">

Use the `base_port` attribute in
[your `aiven_organization_project` resource](https://registry.terraform.io/providers/aiven/aiven/latest/docs/resources/organization_project).

</TabItem>
</Tabs>
1 change: 1 addition & 0 deletions sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ const sidebars: SidebarsConfig = {
],
},
'platform/concepts/aiven-node-firewall-configuration',
'platform/howto/configure-project-base-port',
'platform/concepts/tls-ssl-certificates',

'platform/concepts/disaster-recovery-test-scenarios',
Expand Down