<p>I have the following project:
<a href="https://github.com/ably/kafka-connect-ably" rel="nofollow noreferrer">https://github.com/ably/kafka-connect-ably</a></p>
<p>Running the dockerfile locally works perfectly well.
I have tried a few methods to get it working in k8s...</p>
<p>I have tried Kompose. This created the correct .yaml files, as well as a persistent volume properly linked with the mountpath &quot;config&quot;, but when run I get the error:</p>
<pre><code>java.nio.file.NoSuchFileException: /config/docker-compose-worker-distributed.properties
</code></pre>
<p>Is there a way I can add the properties file to the persistent volume?
I have tried</p>
<pre><code>kubectl cp config/docker-compose-worker-distributed.properties connector:/
</code></pre>
<p>but I get:</p>
<pre><code>error: unable to upgrade connection: container not found (&quot;connector&quot;)
</code></pre>
<p>I have also tried tagging the image with docker tag mycontainerreg.azure.io/name and then docker pushing, but that also fails, perhaps because not enough resources are allocated to it?</p>
<p>Mainly I just need the connector to port from Kafka (Apache) running in AKS to Ably, I understand I can add the connector to Confluent cloud if I purchase Enterprise but thats expensive!</p>

Matt
<p>If anyone finds this. I ended up using Confluent and hosting it in AWS, which meant I could use the bring your own connector / custom connector feature.
Very nice feature allows you just to upload a zip of your connector and they host it for you.</p>
<p>Not technically an answer to the question but it means I dont need to find a solution any more.</p>
