5

I have a multi-container pod that has one main container and another supporting container. The main container terminates after completing its process, but the pod stays in "RUNNING" state because the other container is still running. How can I configure Kubernetes to terminate the whole pod (or the other container and subsequently the whole pod) when my main container terminates?

nikochiko
  • 183
  • 6

1 Answers1

0

with shared pid namespace you can actually "see" the other process from your sidecar, having that you can track pid of the process you want to react to and exit/restart when that pid changes

Radek 'Goblin' Pieczonka
  • 21,554
  • 7
  • 52
  • 48