About kubernetes. How can I Cooperative between containers?

4/19/2017

I want to send a command from a container to another container. Is it possible with SSH? If you have another method, please let me know.

-- ken
kubernetes

1 Answer

4/19/2017

You don't even need SSH. The kubernetes API can be used to execute commands in other containers (and stream input/output).

If you are not into go you can use the kubectl exec command from your container that needs to execute a command in another one.

For both solutions you will need a properly setup ServiceAccount.

-- Janos Lenart
Source: StackOverflow