BrianH_IE
Cadet
Cadet
  • 40 Views

Execute command on one pod from another

Hi All,

Hypothetically, is it possible to execute a command on one container from another (in same namespace)?

I'm thinking the container should use the "exec" k8s API, like a POST to:

/api/v1/namespaces/$NAMESPACE/pods/$NAME/exec

But I wouldn't want to give the keys to the kingdom to any one pod, can I set up RBAC in such a way that I'd limit access to just the single target pod, and allow the initiating pod to have the token it requires to make that request?

 

Thanks,

Brian

 

 

Labels (2)
0 Kudos
Join the discussion
You must log in to join this conversation.