From dd71f4bee6ada1ad3f39730bb04e1f293629dfb8 Mon Sep 17 00:00:00 2001 From: Kai Hudalla Date: Sun, 28 Jan 2024 15:39:58 +0100 Subject: [PATCH] Use KRaft mode for Sandbox deployment Adapted Kafka configuration properties to use single node Kafka instance in KRaft mode based on bitnami/kafka chart version ^26.8. --- deploy/src/main/sandbox/hono-values.yml | 71 ++++++++++--------------- 1 file changed, 27 insertions(+), 44 deletions(-) diff --git a/deploy/src/main/sandbox/hono-values.yml b/deploy/src/main/sandbox/hono-values.yml index d8f9891c22..a2e3ebaa38 100644 --- a/deploy/src/main/sandbox/hono-values.yml +++ b/deploy/src/main/sandbox/hono-values.yml @@ -205,58 +205,41 @@ commandRouterService: limits: memory: "120Mi" +# assumes bitnami/kafka chart version ^26.8 kafka: - ## @param logFlushIntervalMessages The number of messages to accept before forcing a flush of data to disk - ## - logFlushIntervalMessages: _1000 - ## @param logFlushIntervalMs The maximum amount of time a message can sit in a log before we force a flush - ## - logFlushIntervalMs: 1000 - ## @param logRetentionBytes A size-based retention policy for logs - ## 10MB - logRetentionBytes: _10485760 - ## @param logRetentionCheckIntervalMs The interval at which log segments are checked to see if they can be deleted - ## - logRetentionCheckIntervalMs: 300000 - ## @param logRetentionHours The minimum age of a log file to be eligible for deletion due to age - ## - logRetentionHours: 1 - ## @param logSegmentBytes The maximum size of a log segment file. When this size is reached a new log segment will be created - ## 10MB - logSegmentBytes: _10485760 - auth: - tls: - type: "pem" - pemChainIncluded: true - existingSecrets: - - "sandbox-tls" + broker: + extraConfig: | + log.flush.interval.messages=1000 + log.flush.interval.ms=1000 + log.retention.bytes=10485760 + log.retention.check.interval.ms=300000 + log.retention.hours=1 + log.segment.bytes=10485760 + tls: + type: "PEM" + pemChainIncluded: true + existingSecret: "sandbox-tls" externalAccess: + enabled: true autoDiscovery: enabled: false - service: - type: "LoadBalancer" - loadBalancerIPs: - - "hono.eclipseprojects.io" - nodePorts: [] + broker: + service: + type: "LoadBalancer" + loadBalancerIPs: + - "hono.eclipseprojects.io" + nodePorts: [] + controller: + service: + type: "LoadBalancer" + loadBalancerIPs: + - "hono.eclipseprojects.io" + nodePorts: [] + serviceAccount: create: false rbac: create: false - heapOpts: "-Xms650M -Xmx650M" - resources: - requests: - cpu: "50m" - memory: "800Mi" - limits: - memory: "800Mi" - zookeeper: - heapSize: 300 - resources: - requests: - cpu: "50m" - memory: "400Mi" - limits: - memory: "400Mi" jaegerBackendExample: enabled: false