Helm charts and apps for pm-setup
[nonrtric/plt/ranpm.git] / install / helm / nrt-pm-kafka-connect / templates / app-kafka-connect.yaml
1 #  ============LICENSE_START===============================================
2 #  Copyright (C) 2023 Nordix Foundation. All rights reserved.
3 #  ========================================================================
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15 #  ============LICENSE_END=================================================
16 #
17
18 apiVersion: kafka.strimzi.io/v1beta2
19 kind: KafkaConnect
20 metadata:
21   name: pm-connect-cluster
22   namespace: nonrtric
23   annotations:
24   # use-connector-resources configures this KafkaConnect
25   # to use KafkaConnector resources to avoid
26   # needing to call the Connect REST API directly
27     strimzi.io/use-connector-resources: "true"
28     trait.camel.apache.org/logging.level: DEBUG
29     trait.camel.apache.org/logging.color: "false"
30 spec:
31   image: kafka-connect-influxdb2
32   replicas: 1
33   bootstrapServers: kafka-1-kafka-bootstrap.nonrtric:9092
34   externalConfiguration:
35     volumes:
36       - name: influxdb2-connection-bean
37         secret:
38           secretName: influxdb2-connection-bean
39   config:
40     tasks.max: 1
41     config.providers: file
42     config.providers.file.class: org.apache.kafka.common.config.provider.FileConfigProvider
43     group.id: connect-cluster
44     offset.storage.topic: connect-cluster-offsets
45     config.storage.topic: connect-cluster-configs
46     status.storage.topic: connect-cluster-status
47     config.storage.replication.factor: 1
48     offset.storage.replication.factor: 1
49     status.storage.replication.factor: 1