Zum Inhalt springen

Create and manage Key Value Store instances

Zuletzt aktualisiert am

Independent of the method you choose to create and manage an instance, there are common properties for a Key Value Store instance.

The instance name determines the friendly, readable name for your instance.

This setting determines which Key Value version is deployed for your instance.

STACKIT updates the major version according to the official releases of Valkey, with a reasonable delay for testing and implementation. STACKIT skips specific minor versions. Read the Release notes for deprecation notices and announcements of updated versions.

For safety reasons, STACKIT deprecates Key Value Store versions when they reach their End-of-Life (EOL) status. Furthermore, STACKIT applies minor updates automatically for security reasons.

Select the plan that best fits your workload. It is safe to start with a smaller plan and upgrade to a larger one later. Depending on the chosen Key Value version, specific plans are unavailable.

A plan determines the number of nodes, vCPUs, RAM, and storage size. For a detailed reference of available plans, read Service plans for Key Value Store.

The number of nodes determines your horizontal scaling and High Availability (HA). Horizontal scaling increases availability and read performance. The single plan (1 node) does not offer horizontal scaling. A replica plan (3 nodes) offers horizontal scaling and thereby achieves high availability.

The number of vCPUs determines how much computing power each node of your instance has. Follow Plan your Key Value Store instance to find the best option for your workload.

The RAM setting determines how much memory each node of your instance has. Follow Plan your Key Value Store instance to find the best option for your workload.

The disk size determines the capacity of the underlying storage. The smallest option is 10 GB. You can start with this size and enlarge the disk later by upgrading the plan.

Database instances are vulnerable to situations where the storage becomes completely full. To prevent these circumstances, STACKIT offers a parachute feature. It automatically stops the database when a predefined disk usage threshold (in percent) is reached.

You define this threshold with this setting. You can deactivate this feature by defining the threshold as 100%.

Access Control List (ACL) entries control which source IPs can connect to your instance. This is an additional security layer and does not replace the need for proper authentication and security best practices.

To ensure that you can access your instance from other STACKIT cloud services, you must add the STACKIT public IP ranges to your ACL. Since these ranges evolve over time, you can dynamically retrieve the most up-to-date list using the STACKIT CLI:

Terminal window
stackit auth login
stackit curl "[https://iaas.api.stackit.cloud/v2/networks/public-ip-ranges](https://iaas.api.stackit.cloud/v2/networks/public-ip-ranges)"

You receive a JSON response containing the current CIDR blocks grouped by region. Add the cidr values relevant to your instance’s region to your ACL entries.

{
"items": [
{
"cidr": "192.214.160.0/19",
"region": "eu01"
},
{
"cidr": "193.148.164.0/22",
"region": "eu01"
},
// ... additional IPs ...
{
"cidr": "9.206.0.0/22",
"region": "eu02"
}
]
}

If you want to access your instance from the public internet, you need to add your client’s IPv4 address or subnet. The entries follow the CIDR notation. If you want to allow a single IP address (e.g., a single host), set 32 as the subnet parameter. For example, to allow a host with the source IPv4 address of 93.229.84.137, add 93.229.84.137/32 as the ACL entry.

Adding IPv6 addresses is not supported.

To create an instance, you first need to navigate to the STACKIT Portal and log in.

First, you need to determine which plan you need. The available plans depend on the chosen version. To get a list of available plans, execute:

Terminal window
stackit key-value-store plans

You can also review the Service plans for Key Value Store to learn more about the available options.

To create your instance, execute the following command:

Terminal window
stackit key-value-store instance create --name <name> --plan-id <plan-id> --version <version> --acl <acl>

After executing the command, you need to confirm by typing y. When the instance is created successfully, the CLI returns the instance ID:

Created instance for project "Test-Projekt-28-07-2025".
Instance ID: 1737d9b7-ad6d-4a86-807a-bae5c5f5ed71

Create an instance with minimum required flags:

Terminal window
stackit key-value-store instance create --name my-keyvalue-instance --plan-id 3849f72f-99cc-4e2c-afda-700d66ef08f2

To view an instance, execute the command with the following parameters:

Terminal window
stackit key-value-store instance describe <INSTANCE_ID>

Example output:

ID │ 1737d9b7-ad6d-4a86-807a-bae5c5f5ed71
──────────────────────┼───────────────────────────────────────────────────────────────────────────────────────
NAME │ my-keyvalue-instance
──────────────────────┼───────────────────────────────────────────────────────────────────────────────────────
LAST OPERATION TYPE │ create
──────────────────────┼───────────────────────────────────────────────────────────────────────────────────────
LAST OPERATION STATE │ succeeded
──────────────────────┼───────────────────────────────────────────────────────────────────────────────────────
PLAN ID │ 3849f72f-99cc-4e2c-afda-700d66ef08f2
──────────────────────┼───────────────────────────────────────────────────────────────────────────────────────
ACL │ 193.148.160.0/19,45.129.40.0/21,45.135.244.0/22,192.214.174.229/32,192.214.176.140/32

You can edit the following properties of an instance: acl, plan, and version. To see a reference for these flags, have a look at the Create an instance section.

To edit the instance, execute the following command:

Terminal window
stackit key-value-store instance update <INSTANCE_ID> --<Flag Name> <Flag Value>
Terminal window
stackit key-value-store instance update 1737d9b7-ad6d-4a86-807a-bae5c5f5ed71 --plan-id 8309378b-3f85-403a-bf42-525d07cfdf78

You can delete an instance when it operates in its READY state. After executing this command, the operation cannot be undone.

To delete an instance, execute:

Terminal window
stackit key-value-store instance delete <INSTANCE_ID>

You receive the following output:

Deleted instance "my-keyvalue-instance"