-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Read create_infra from containers.conf when kube play .yaml #24584
Comments
AFAIK k8s always uses a infra container and the kube command tires to match k8s behavior wherever possible as long as it makes sense for podman. And I think there is important functionality that requires a infra container to be created for the pod, i.e. we need a container running to keep namespaces open that can be shared for all containers in a pod. What exactly is your use case? |
@Luap99 Thank you Paul for reaction,
In my pod i won't change number of running containers ( don't need to add or remove during runtime). But the main (dumb) reason ... is that i would like to filter out infra container during checking state of containers and have it short to not process it a lot 😅. Additional side effect to consider what will happen if we would use this configuration variable durnig podman kube play: |
Well without the infra the containers will not share any namespaces which is not what most people want. In that case they are just a group of containers where podman pod start/stop starts and stops the containers at the some time.
I don't know what you are doing but there is a IsInfra field in the inspect and list container output that can be used to filter.
Yeah I think this is pretty much undefined behavior. I guess on errors we should clean the pod up again which the code seem to say as well podman/cmd/podman/kube/play.go Lines 329 to 343 in e195177
So I am not sure why this isn't done today or what the problems with that are. |
A friendly reminder that this issue had no activity for 30 days. |
I close this as won't fix, the k8s behavior requires a infra container |
When creating pod using
podman pod create --infra=false
we have possibility to avoid creating infra container.As far i know there is no counterpart command in .yaml file.
In such situation i would suggest to create in containers.conf:
The text was updated successfully, but these errors were encountered: