I've a pod
with two containers. I need to pause one of them because when it's getting error whole of pod
will restart and the second container start all things from beginning. I need to suspend first container till second one do it's job. Can i achieve this?
You can define second one container as init container. Init containers are exactly like regular containers, except they always run to completion, each init container must complete successfully before the next one starts.
Here is an example:
Take a look: init-containers.