'Running a pod on OSX leaves infra container running forever

I am running a pod via play kube. My container exits, but the companion infra container keeps running forever, meaning that the whole pod keeps running forever

Is there a way to make infra container exit once pod's containers exit?

I am running on OSX



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source