efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 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: |
efiacor | af68a7e | 2022-04-08 10:59:52 +0100 | [diff] [blame] | 19 | nodePortPrefixExt: 304 |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 20 | persistence: |
| 21 | mountPath: /dockerdata-nfs |
Andreas Geissler | 2900765 | 2023-03-23 14:05:45 +0100 | [diff] [blame] | 22 | ingress: |
| 23 | virtualhost: |
| 24 | baseurl: &baseurl "simpledemo.onap.org" |
| 25 | preaddr: &preaddr "" |
| 26 | postaddr: &postaddr "" |
| 27 | |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 28 | ################################################################# |
| 29 | # Application configuration defaults. |
| 30 | ################################################################# |
efiacor | 1cfa2fb | 2022-06-01 16:02:39 +0100 | [diff] [blame] | 31 | replicaCount: 3 |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 32 | config: |
Andreas Geissler | bc950b5 | 2023-05-30 16:40:49 +0200 | [diff] [blame] | 33 | kafkaVersion: 3.4.0 |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 34 | authType: simple |
| 35 | saslMechanism: &saslMech scram-sha-512 |
| 36 | kafkaInternalPort: &plainPort 9092 |
| 37 | strimziKafkaAdminUser: &adminUser strimzi-kafka-admin |
Andreas Geissler | eb68c40 | 2023-02-23 11:09:01 +0100 | [diff] [blame] | 38 | advertisedHost: kafka-api.simpledemo.onap.org |
| 39 | advertizedPortBroker0: &advertizedPortBroker0 9000 |
| 40 | advertizedPortBroker1: &advertizedPortBroker1 9001 |
| 41 | advertizedPortBroker2: &advertizedPortBroker2 9002 |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 42 | |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 43 | persistence: |
| 44 | enabled: &pvenabled true |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 45 | mountPath: /dockerdata-nfs |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 46 | kafka: |
| 47 | enabled: *pvenabled |
| 48 | # default values of 2Gi for dev env. |
| 49 | # Production values should be dimensioned according to requirements. ie >= 10Gi |
| 50 | size: 2Gi |
| 51 | volumeReclaimPolicy: Retain |
| 52 | accessMode: ReadWriteOnce |
| 53 | mountPath: /dockerdata-nfs |
| 54 | mountSubPath: strimzi-kafka/kafka |
| 55 | zookeeper: |
| 56 | enabled: *pvenabled |
| 57 | size: 1Gi |
| 58 | volumeReclaimPolicy: Retain |
| 59 | accessMode: ReadWriteOnce |
| 60 | mountPath: /dockerdata-nfs |
| 61 | mountSubPath: strimzi-kafka/zk |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 62 | |
| 63 | #Pods Service Account |
| 64 | serviceAccount: |
| 65 | nameOverride: strimzi-kafka |
| 66 | roles: |
| 67 | - read |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 68 | |
Andreas Geissler | eb68c40 | 2023-02-23 11:09:01 +0100 | [diff] [blame] | 69 | ingress: |
| 70 | enabled: false |
| 71 | service: |
| 72 | - baseaddr: "kafka-bootstrap-api" |
| 73 | name: "onap-strimzi-kafka-external-bootstrap" |
| 74 | port: 9094 |
Andreas Geissler | 2900765 | 2023-03-23 14:05:45 +0100 | [diff] [blame] | 75 | protocol: tcp |
Andreas Geissler | eb68c40 | 2023-02-23 11:09:01 +0100 | [diff] [blame] | 76 | exposedPort: 9010 |
| 77 | exposedProtocol: TLS |
Andreas Geissler | 2900765 | 2023-03-23 14:05:45 +0100 | [diff] [blame] | 78 | - baseaddr: "kafka-api" |
| 79 | tcpRoutes: |
| 80 | - name: "onap-strimzi-kafka-0" |
| 81 | port: 9094 |
| 82 | exposedPort: *advertizedPortBroker0 |
| 83 | exposedProtocol: TLS |
| 84 | - name: "onap-strimzi-kafka-1" |
| 85 | port: 9094 |
| 86 | exposedPort: *advertizedPortBroker1 |
| 87 | exposedProtocol: TLS |
| 88 | - name: "onap-strimzi-kafka-2" |
| 89 | port: 9094 |
| 90 | exposedPort: *advertizedPortBroker2 |
| 91 | exposedProtocol: TLS |
Andreas Geissler | eb68c40 | 2023-02-23 11:09:01 +0100 | [diff] [blame] | 92 | |
miroslavmasaryk | aa5f0fa | 2023-03-20 10:21:36 +0100 | [diff] [blame] | 93 | # Kafka Exporter for metrics |
| 94 | metrics: |
| 95 | enabled: false |
| 96 | kafkaExporter: |
| 97 | enabled: false |
| 98 | metricsConfig: |
| 99 | type: jmxPrometheusExporter |
| 100 | topicRegex: ".*" |
| 101 | groupRegex: ".*" |
| 102 | resources: |
| 103 | requests: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 104 | cpu: 2 |
| 105 | memory: 0.6Gi |
miroslavmasaryk | aa5f0fa | 2023-03-20 10:21:36 +0100 | [diff] [blame] | 106 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 107 | cpu: 5 |
| 108 | memory: 1.5Gi |
miroslavmasaryk | aa5f0fa | 2023-03-20 10:21:36 +0100 | [diff] [blame] | 109 | logging: debug |
| 110 | enableSaramaLogging: true |
| 111 | readinessProbe: |
| 112 | initialDelaySeconds: 15 |
| 113 | timeoutSeconds: 5 |
| 114 | livenessProbe: |
| 115 | initialDelaySeconds: 15 |
| 116 | timeoutSeconds: 5 |
| 117 | podMonitor: |
| 118 | # Prometheus pre requisite. Currently an optional addon in the OOM docs |
| 119 | enabled: false |
| 120 | # default port for strimzi metrics |
| 121 | port: "tcp-prometheus" |
| 122 | # podMonitor labels for prometheus to pick up the podMonitor |
| 123 | # dummy value |
| 124 | labels: |
| 125 | release: dummy |
| 126 | relabelings: [] |
| 127 | metricRelabelings: [] |
| 128 | |
| 129 | cruiseControl: |
| 130 | ## Cruise Control provides a Kafka metrics reporter implementation |
| 131 | ## once installed into the Kafka brokers, filters and records a wide range of metrics provided by the brokers themselves. |
| 132 | ## pre requisite is having 2 or more broker nodes |
| 133 | enabled: false |
| 134 | metricsConfig: |
| 135 | type: jmxPrometheusExporter |
| 136 | ## Custom resource for Kafka that can rebalance your cluster |
| 137 | # ref. https://strimzi.io/blog/2020/06/15/cruise-control/ |
| 138 | kafkaRebalance: |
| 139 | enabled: false |
| 140 | |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 141 | ###################### |
| 142 | # Component overrides |
| 143 | ###################### |
| 144 | strimzi-kafka-bridge: |
| 145 | enabled: true |
| 146 | config: |
| 147 | saslMechanism: *saslMech |
| 148 | kafkaInternalPort: *plainPort |
Andreas Geissler | bc950b5 | 2023-05-30 16:40:49 +0200 | [diff] [blame] | 149 | strimziKafkaAdminUser: *adminUser |