Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to define custom container specs ? #2606

Closed
mmacphail opened this issue Aug 30, 2021 · 2 comments
Closed

How to define custom container specs ? #2606

mmacphail opened this issue Aug 30, 2021 · 2 comments

Comments

@mmacphail
Copy link
Contributor

Hello,

I was wondering how to define custom container specs. I followed the doc and some issues, I'm not certain how it's done in version 1.5.0.

I want to specify the kubernetes service account used to run the pod. I tried the following syntax:

kamel run --trait pod.spec.serviceAccountName=test helloworld.groovy

But clearly my syntax is wrong.

@astefanutti
Copy link
Member

You can set the service account name directly on the .spec.serviceAccountName field of the Integration resource.

The pod trait enables to customise the container specs by passing a template from file. However it is currently a subset of the PodSpec struct. We'll add the ability to set the service account name from there soon.

@mmacphail
Copy link
Contributor Author

Thank you, for now I use the following command k edit integration helloworld and add the service account here, which is working but a bit inconvenient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants