kubectl port-forward versus kubectl proxy


Hello Kubernetes community,

From what I understood kubectl port-forward allows to do the same things as kubectl proxy and more.
Indeed kubectl port-forward allows TCP traffic, therefore HTTP, while kubectl proxy allows only HTTP…

So what is the purpose of kubectl proxy? Why don’t we have only kubectl port-forward command?



This question came up on yesterday’s Office Hours :slight_smile: I’ve linked to the specific time below:


Nice ! Thanks for sharing the link.