Re: Adding annotations and limits of kafka connect created pods


Jakub Scholz
 

The YAML you shared has no indentation. If that is how it really looks, it is indeed invalid. If the indentation was list during copy pasting, nobody can say what the original indentation was and what would be the error.

Thanks & Regards
Jakub

On Mon, Jan 31, 2022 at 4:08 PM <amit.cahanovich@...> wrote:
Hi,
i have the following configuration:
kind: KafkaConnect
metadata:
name: my-connect-cluster
namespace: kafka
annotations:
spec:
template:
pod:
metadata:
annotations:
ad.datadoghq.com/kafka-connect-container-name.logs: '[{"type":"file", "source":"java","sourcecategory":"sourcecode", "service":"kafka-connect"}]'
ad.datadoghq.com/container.instances: '[{"prometheus_url": "http://%%host%%:9404/metrics","namespace": "kafka","metrics": ["kafka_connect_connector_task_batch_size_avg"],"type_overrides": {"kafka_connect_incoming_byte_total": "gauge"}}]'
image:


i keep on getting: error: error validating "kafka-connect-prometeus.yaml": error validating data: ValidationError(KafkaConnect): unknown field "template" in io.strimzi.kafka.v1beta2.KafkaConnect; if you choose to ignore these errors, turn validation off with --validate=false

any advise on it (when removing it. all work smoothly...)
Thanks,
Amit

Join cncf-strimzi-users@lists.cncf.io to automatically receive all group messages.