Thanks alot @superseb i will try the above and surely let you know.
The problem which we are facing is we are not able to stops the infrastructure stacks especially IPSec.
the cni-driver says its already in use. and it has about 180 containers.
Whenever we try to stop the cni-driver, it pops up the set of ids which are in use.
We need to call the api of
> containers to stop the same in a loop
How can i achieve the above dynamically.
The idea here is, the infrastructure stacks id and theiur instance id should get retrieved from the api call and saved into a variable and using which we can loop in the list to stop those cni driver containers and deactivate ipsec stack.