Pod and node

hi,
A container(within pod) from a node send data to other container(in pod) in other node via api server?

This transfer between containers(different nodes) uses http rest?i mean http post so on?

is right?

No. API server is not on the data path. Pod to pod traffic should be direct.

When deploy service -loadbalancer or nodeport,in manifest file are specified ports(port on where service listen,internal port,target port).

Are those ports created by kube-proxy on node?

NodePorts and Service ClusterIP+port are managed on nodes (usually). The listening port inside the container is up to the container to manage. We can’t deliver traffic if you aren’t listening :slight_smile:

https://speakerdeck.com/thockin/kubernetes-a-very-brief-explanation-of-ports

1 Like