KafkaConnect Kaniko build fails with filesystem permission error #7179
-
Hello, I'm still trying to get my head around KafkaConnect stuffs, so apologies if I've made incorrect assumptions. My goal: Run Debezium CDC against Oracle database. I'll jump straight to the error to scintillate the readers, then pedal back to explain how I got there:
Stack:
Kafka Environment:
i.e. I have a simple cluster with the strimzi operator, a debezium KafkaConnect cluster (using a pre-built mysql image) and some basic consumers and producers. I have MySQL, DB2 and Oracle running in other namespaces. I deploy the following
I might have done things wrong here, I've tried lots of things (I have already tried this when creating a DB2 connector). Once I apply the yaml I get a So I suspect it's not expecting to build in a CRI-O environment maybe? Not sure what else I can do to debug this (I'm unfamiliar with Kaniko too). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
I personally haven't done any testing on CRI-O. My servers normally use Containerd. But I'm not aware of any limitations. From the error, it sounds to me like someone / something restricted the permissions of the Kaniko container. So maybe you should check if you don't have any tools injecting some restricted security context etc. These might not work well with Kaniko since currently it requires some capabilities and the ability to write to some directories of the image etc. If needed, keep in mind that you can also use the traditional Dockerfile approach and simply build the container image manually or in some CI. That is something what is independent on Kaniko and should always work. |
Beta Was this translation helpful? Give feedback.
-
I was given a workaround from the Kaniko issue:
(I'll try to run with one at a time to see if there's a minimal set I need) Is there a way to add those to the |
Beta Was this translation helpful? Give feedback.
I was given a workaround from the Kaniko issue:
I needed to add the following to the
Pod
definition:(I'll try to run with one at a time to see if there's a minimal set I need)
Is there a way to add those to the
KafkaConnect
yaml?