camel-k icon indicating copy to clipboard operation
camel-k copied to clipboard

Expand Integration pod template spec

Open hernanDatgDev opened this issue 1 year ago • 2 comments

Requirement

We have security requirements for production deployments that require modifications the integration pods/containers. For example, being able to configure automountServiceAccountToken to the deployed integration pod. Currently this is the only field that we cannot configure, however we expect more to come in the future as our requirements evolve.

Zulip thread: https://camel.zulipchat.com/#narrow/stream/257299-camel-k/topic/Integration.20PodTemplate.20uses.20custom.20PodSpec

Problem

Currently the framework is using a custom PodSpec which is a subset of the official Kubernetes PodSpec. Many fields are simply not available, for example automountServiceAccountToken and there isn't any other way to configure this field from within the framework.

Proposal

Configure more fields from the Kubernetes PodSpec and add them to the subset PodSpec that camel-k is using. Ideally the whole K8 PodSpec would be available for maximum customization. If not, perhaps we could streamline the process for adding additional fields to the PodSpec as the requirements come up.

Open questions

No response

hernanDatgDev avatar Apr 19 '24 19:04 hernanDatgDev

Thanks for reporting. Please, let us know if you're planning to work on this by any chance.

squakez avatar Apr 22 '24 06:04 squakez

Hi @squakez I created a draft PR for this: https://github.com/apache/camel-k/pull/5445 I had a question in the PR regarding how I set a protobuf value.

hernanDatgDev avatar May 01 '24 20:05 hernanDatgDev