[STRIMZI] Add option to disable auto creation of kafka topics
[oom.git] / kubernetes / strimzi / values.yaml
1 # Copyright © 2022 Nordix Foundation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 #################################################################
16 # Global configuration defaults.
17 #################################################################
18 global:
19   nodePortPrefixExt: 304
20   persistence:
21     mountPath: /dockerdata-nfs
22   ingress:
23     virtualhost:
24       baseurl: &baseurl "simpledemo.onap.org"
25       preaddr: &preaddr ""
26       postaddr: &postaddr ""
27
28 #################################################################
29 # Application configuration defaults.
30 #################################################################
31 replicaCount: 3
32 config:
33   kafkaVersion: 3.4.0
34   authType: simple
35   saslMechanism: &saslMech scram-sha-512
36   kafkaInternalPort: &plainPort 9092
37   strimziKafkaAdminUser: &adminUser strimzi-kafka-admin
38   advertisedHost: kafka-api.simpledemo.onap.org
39   advertizedPortBroker0: &advertizedPortBroker0 9000
40   advertizedPortBroker1: &advertizedPortBroker1 9001
41   advertizedPortBroker2: &advertizedPortBroker2 9002
42   autoCreateTopics: true
43
44 persistence:
45   enabled: &pvenabled true
46   mountPath: /dockerdata-nfs
47   kafka:
48     enabled: *pvenabled
49     # default values of 2Gi for dev env.
50     # Production values should be dimensioned according to requirements. ie >= 10Gi
51     size: 2Gi
52     volumeReclaimPolicy: Retain
53     accessMode: ReadWriteOnce
54     mountPath: /dockerdata-nfs
55     mountSubPath: strimzi-kafka/kafka
56   zookeeper:
57     enabled: *pvenabled
58     size: 1Gi
59     volumeReclaimPolicy: Retain
60     accessMode: ReadWriteOnce
61     mountPath: /dockerdata-nfs
62     mountSubPath: strimzi-kafka/zk
63
64 #Pods Service Account
65 serviceAccount:
66   nameOverride: strimzi-kafka
67   roles:
68     - read
69
70 ingress:
71   enabled: false
72   service:
73   - baseaddr: "kafka-bootstrap-api"
74     name: "onap-strimzi-kafka-external-bootstrap"
75     port: 9094
76     protocol: tcp
77     exposedPort: 9010
78     exposedProtocol: TLS
79   - baseaddr: "kafka-api"
80     tcpRoutes:
81     - name: "onap-strimzi-kafka-0"
82       port: 9094
83       exposedPort: *advertizedPortBroker0
84       exposedProtocol: TLS
85     - name: "onap-strimzi-kafka-1"
86       port: 9094
87       exposedPort: *advertizedPortBroker1
88       exposedProtocol: TLS
89     - name: "onap-strimzi-kafka-2"
90       port: 9094
91       exposedPort: *advertizedPortBroker2
92       exposedProtocol: TLS
93
94 # Kafka Exporter for metrics
95 metrics:
96   enabled: false
97   kafkaExporter:
98     enabled: false
99     metricsConfig:
100       type: jmxPrometheusExporter
101     topicRegex: ".*"
102     groupRegex: ".*"
103     resources:
104       requests:
105         cpu: 2
106         memory: 0.6Gi
107       limits:
108         cpu: 5
109         memory: 1.5Gi
110     logging: debug
111     enableSaramaLogging: true
112     readinessProbe:
113       initialDelaySeconds: 15
114       timeoutSeconds: 5
115     livenessProbe:
116       initialDelaySeconds: 15
117       timeoutSeconds: 5
118   podMonitor:
119     # Prometheus pre requisite. Currently an optional addon in the OOM docs
120     enabled: false
121     # default port for strimzi metrics
122     port: "tcp-prometheus"
123     # podMonitor labels for prometheus to pick up the podMonitor
124     # dummy value
125     labels:
126       release: dummy
127     relabelings: []
128     metricRelabelings: []
129
130 cruiseControl:
131 ## Cruise Control provides a Kafka metrics reporter implementation
132 ## once installed into the Kafka brokers, filters and records a wide range of metrics provided by the brokers themselves.
133 ## pre requisite is having 2 or more broker nodes
134   enabled: false
135   metricsConfig:
136     type: jmxPrometheusExporter
137   ## Custom resource for Kafka that can rebalance your cluster
138   # ref. https://strimzi.io/blog/2020/06/15/cruise-control/
139   kafkaRebalance:
140     enabled: false
141
142 ######################
143 #  Component overrides
144 ######################
145 strimzi-kafka-bridge:
146   enabled: true
147   config:
148     saslMechanism: *saslMech
149     kafkaInternalPort: *plainPort
150     strimziKafkaAdminUser: *adminUser