Skip to content

What does ServiceLB (Klipper LB) actually do ? #9927

Answered by IJMacD
nate-42 asked this question in Q&A
Discussion options

You must be logged in to vote

I think your observation is correct, and actually answers your initial question.

The ServiceLB pods never handle TCP/UDP traffic themselves, that's not their purpose. Their entire purpose as I understand it is to set up those DNAT iptables rules on the node. Once the iptables rules are set up, the pod's purpose is fulfilled but they stick around to watch for changes in the service and to remove the rules when the corresponding K8s service is deleted.

kube-proxy is only responsible for creating iptables rules to handle traffic within the cluster. ServiceLB is an add-on (mostly specific to K3s), only adding a couple of extra rules per LoadBalanced service to handle external traffic.

In the …

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@IJMacD
Comment options

Answer selected by nate-42
@nate-42
Comment options

@IJMacD
Comment options

@nate-42
Comment options

@lindhe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants