Customize Environment Variables and Kafka REST Proxy Heap Size

You can customize environmental variables for the kafkarest pod by using the kafkarest StatefulSet.

The following example customizes the Kafka REST Proxy heap size:

  1. Edit the kafkarest StatefulSet:
    $ kubectl edit statefulset kafkarest -n dataplatform
  2. Add the variable name and value to the env: section:
    spec:
    - template:
      - spec:
        - containers:
         - env:
           - name: KAFKAREST_HEAP_OPTS
             value: -Xmx4096m