kubectl port-forward versus kubectl proxy


#1

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?

Thanks,
Thomas


#2

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


#3

Nice ! Thanks for sharing the link.