How `kubectl exec` works

How It Works — kubectl exec

Ivan Sim
ITNEXT
Published in
5 min readJan 30, 2020

--

If you are interested in finding out how kubectl exec works, then I hope you will find this post useful. We will look into how the command works by examing the relevant code in kubectl, K8s API Server, Kubelet and the Container Runtime Interface (CRI) Docker API.

About This Command

Thekubectl exec command is an invaluable tool for those of us who regularly work with…

--

--