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

podman kube generate shall include spec.automountServiceAccountToken: false #15243

Closed
dilyanpalauzov opened this issue Aug 8, 2022 · 3 comments
Labels
Good First Issue This issue would be a good issue for a first time contributor to undertake. kube locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@dilyanpalauzov
Copy link
Contributor

Podman containers are supposed to work equally good, when moved to Kubernetes. Podman does not use Kubertenes’ Service Account. Therefore once a pod is moved from Podman to Kuberenes it will not need its service account.

To disable implicitly mounting the service account in the pod, which does eat resources, add

spec:
  automountServiceAccountToken: false

to the output of podman kube generate.

@rhatdan
Copy link
Member

rhatdan commented Aug 9, 2022

Interested in opening a PR for this?

@umohnani8 @haircommander @mrunalp @saschagrunert WDYT?

@dilyanpalauzov
Copy link
Contributor Author

Interested in opening a PR for this?

No

@rhatdan rhatdan added kube Good First Issue This issue would be a good issue for a first time contributor to undertake. labels Aug 9, 2022
@rhatdan
Copy link
Member

rhatdan commented Aug 9, 2022

openshift-merge-robot added a commit that referenced this issue Sep 8, 2022
Fix #15243 Set AutomountServiceAccountToken to false
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 16, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Good First Issue This issue would be a good issue for a first time contributor to undertake. kube locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

2 participants