Can we run shell commands in between microservices
You can exec from one pod into another pod granted they have the RoleBinding
pods/exec
available in your namespace. I would listen to berndbausch though and re-architecture your solution as this pattern would be strange.
From <source pod>
: kubectl exec -it <destination pod> -- /bin/bash