squakez commented on issue #4955:
URL: https://github.com/apache/camel-k/issues/4955#issuecomment-1841138876

   I think the problem is the fact that Kaniko (and Buildah) needs root 
privileges in order to work. When it creates the container, since it is with 
root privileges, then, the artifact has root visibility only. By default, the 
securityContext will run with the `USER 1000` privileges, reason why it cannot 
find that artifact. The only way to have this running is, as you did, run with 
a privileged root.
   
   We have deprecated Kaniko and Buildah also for this reason in version 2.1.0, 
so, the suggestion from us is to move to a supported (and more secure) 
publishing strategy [1].
   
   [1] 
https://camel.apache.org/camel-k/next/installation/advanced/build-config.html#publish-strategy
 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to