diff --git a/helm/openwhisk/templates/kafka-pod.yaml b/helm/openwhisk/templates/kafka-pod.yaml index f49d30f4..102e94e5 100644 --- a/helm/openwhisk/templates/kafka-pod.yaml +++ b/helm/openwhisk/templates/kafka-pod.yaml @@ -88,6 +88,14 @@ spec: value: "EXTERNAL://_{HOSTNAME_COMMAND}:{{ .Values.kafka.port }}" - name: "KAFKA_INTER_BROKER_LISTENER_NAME" value: "EXTERNAL" +{{- if .Values.kafka.quota.producer }} + - name: "KAFKA_QUOTA_PRODUCER" + value: "{{.Values.kafka.quota.producer}}" +{{- end}} +{{- if .Values.kafka.quota.consumer }} + - name: "KAFKA_QUOTA_CONSUMER" + value: "{{.Values.kafka.quota.consumer}}" +{{- end}} # zookeeper info - name: "KAFKA_ZOOKEEPER_CONNECT" diff --git a/helm/openwhisk/values.yaml b/helm/openwhisk/values.yaml index 2d74e82c..32ed5041 100644 --- a/helm/openwhisk/values.yaml +++ b/helm/openwhisk/values.yaml @@ -100,6 +100,9 @@ whisk: # Kafka configuration. For all sub-fields a value of "" means use the default from application.conf kafka: replicationFactor: "" + quota: + consumer: "" + producer: "" topics: cacheInvalidation: segmentBytes: ""