Accessing topics from an application outside Nais ΒΆ

This guide will show you how to access a Kafka topic from an application outside Nais clusters.

Enable access to the relevant pool in your manifest ΒΆ

.nais/aivenapp.yaml

yaml

Info

The secretName must be a valid DNS label, and must be unique within the namespace.

Apply the AivenApplication ΒΆ

Add the file to your application repository, alongside nais.yaml to deploy with Nais github action.

bash

Extract the value of the generated secret ΒΆ

bash

Make the values available to your application.

Grant access to the topic ΒΆ

The owner of the topic must grant your application access to the topic.