Connect services to Aiven Runtime Limited availability
Connect your deployed application to Aiven services. You can connect an existing Aiven for Apache Kafka®, Aiven for PostgreSQL®, Aiven for OpenSearch®, or Aiven for Valkey™ service.
You can also define integrations when you create your application by using Compose files.
Connect an Aiven service
- In your project, click Runtime.
- Open your application.
- In the Connected services section, click Connect service.
- Select the service to connect.
- Click Connect.
Connect a Karapace schema registry
To connect services that are integrated with your application to a Karapace schema registry:
- Connect the application to the Aiven for Apache Kafka® service.
- Add the schema registry connection details as environment variables.
Prerequisites
- An Aiven for Apache Kafka® service with the Karapace schema registry enabled.
- The connection details for the schema registry.
Connect a schema registry during application creation
- In your project, click Runtime.
- Click Deploy application.
- Select or connect your GitHub account.
- Select your Account, Repository, and Branch.
- Click Next.
- Select your manifest file and click Scan. Aiven Runtime automatically detects what applications and services are needed.
- On the Kafka service, click Swap with an existing service.
- Select the Kafka service you created and click Apply.
- To configure the integration with the schema registry, click Configure and add the connection details as environment variables.
- To deploy the application, click Deploy.
Connect a schema registry to an existing application
- In your project, click Runtime.
- Open your application.
- In the Environment variables section, click Edit.
- On the Variables tab, add the connection details as environment variables.
- Click Save.
Disconnect an Aiven service
- In your project, click Runtime.
- Open your application.
- In the Connected services section, find the service to disconnect.
- Click Actions > Disconnect service.
- Click Disconnect to confirm.
Apply database schema changes
Aiven Runtime does not automatically support pre-deploy commands or one-off task execution. To run database schema migrations, you can do one of the following:
-
Run migrations at container startup: You can update the
CMDor entrypoint of your Containerfile or Dockerfile so that the database schema changes are applied every time the container starts up. -
Run migrations in CI/CD before deploying: If you use a CI/CD pipeline, you can run migrations as a pipeline step before deployment.