<p>I'm trying work with Strimzi to create kafka-connect cluster and encountering the following error</p>
<pre><code>unable to recognize &quot;kafka-connect.yaml&quot;: no matches for kind &quot;KafkaConnect&quot; in 
version &quot;kafka.strimzi.io/v1beta2&quot;
</code></pre>
<p>Here's the kafka-connect.yaml I have:</p>
<pre><code>apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaConnect
metadata:
 name: kafka-connect
 namespace: connect
 annotations:
   strimzi.io/use-connector-resources: &quot;true&quot;
spec:
 version: 2.4.0
 replicas: 1
 bootstrapServers: host:port
 tls:
   trustedCertificates:
     - secretName: connectorsecret
       certificate: cert
 config:
   group.id: o
   offset.storage.topic: strimzi-connect-cluster-offsets
   config.storage.topic: strimzi-connect-cluster-configs
   status.storage.topic: strimzi-connect-cluster-status
   sasl.mechanism: scram-sha-256
   security.protocol: SASL_SSL
   secretName: connectorsecret
   sasl.jaas.config: org.apache.kafka.common.security.scram.ScramLoginModule required username=username password=password
</code></pre>
<p>Then I tried to apply the config via <code>kubectl apply -f kafka-connect.yaml</code></p>
<p>Is there anything necessities to create resources using Strimzi or something I'm doing wrong?</p>

flowAlong
<p>I think there are two possibilities:</p>
<ol>
<li>You did not installed the CRD resources</li>
<li>You are using Strimzi version which is too old and does not support the <code>v1beta2</code> API</li>
</ol>
<p>Judging that you are trying to use Kafka 2.4.0, I guess the second option is more likely. If you ŕeally want to do that, you should make sure to use the documentation, examples and everything from the version of Strimzi you use- they should be useing one of the older APIs (<code>v1alpha1</code> or <code>v1beta1</code>).</p>
<p>But in general, I would <strong>strongly</strong> recommend you to use the latest version of Strimzi and not a version which is several years old.</p>
<hr />
<p>One more note: If you want to configure the SASL authentication for your Kafka Connect cluster, you should do it in the <code>.spec.authentication</code> section of the custom resource and not in <code>.spec.config</code>.</p>
