Skip to content

Using Kafka Streams with internal topics

This guide will show you how to use Kafka Streams with internal topics.

Enable Kafka Streams in your application

  kind: Application
    name: <MY-APP>
    namespace: <MY-TEAM>
      team: <MY-TEAM>
      pool: <MY-POOL>
      streams: true

Select a pool from one of the available pools.

Configure your application

When you do this you must configure Kafka Streams by setting the property to a value that starts with the value of the env var KAFKA_STREAMS_APPLICATION_ID, which will be injected into your pod automatically.

Apply the application

Add the file to your application repository to deploy with NAIS github action.

kubectl apply -f ./nais/app.yaml --namespace=<MY-TEAM> --context=<MY-CLUSTER>