kubernetes/pkg/proxy
Daman Arora c7a870135a nftables: cleanup service chain checks
A packet can traverse the service-xxxx chains by matching on either
service-ips or service-nodeports verdict map. We masquerade off-cluster
traffic to ClusterIP (when masqueradeAll = false) by adding a rule in
service-xxxx which checks if destination IP is ClusterIP, port and
protocol matches with service specs and source IP doesn't belong to
PodCIDR and masquerade on match.

If the packet reaches the service chain by match on service-ips map,
then ClusterIP, port and protocol are already matching service specs.
If it comes via external-xxxx chain then the destination IP will
never be ClusterIP. Therefore, we can simplify the masquerade
off-cluster traffic to ClusterIP check by simply matching on
destination ip and source ip.

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2025-04-27 01:05:45 +05:30
..
apis Use randfill, do API renames 2025-03-08 15:18:00 -08:00
config update kube-proxy 2025-01-20 13:01:53 +00:00
conntrack Add test for ReconcileConntrackFlowsDeletedEntriesTotal metric 2025-03-02 15:58:40 +02:00
healthcheck Clarify hostname vs node name in kube-proxy 2025-03-19 08:46:15 -04:00
iptables Implement PreferSameNode traffic distribution in kube-proxy 2025-03-19 08:46:17 -04:00
ipvs Implement PreferSameNode traffic distribution in kube-proxy 2025-03-19 08:46:17 -04:00
kubemark kube-proxy: internal config: add Linux section 2024-07-16 19:20:48 +05:30
metaproxier Remove a stale comment in metaproxier.go 2025-03-07 10:43:56 -05:00
metrics kube-proxy: metric to track entries deleted in conntrack reconciliation 2025-02-17 00:06:20 +05:30
nftables nftables: cleanup service chain checks 2025-04-27 01:05:45 +05:30
util Made the unsupportedError msg more readable 2025-03-04 14:32:50 +08:00
winkernel Fix for HNS local endpoint was being deleted instead of the remote endpoint. 2025-04-08 07:10:13 -07:00
doc.go remove import doc comments 2024-12-02 16:59:34 +01:00
endpoint.go Implement PreferSameNode traffic distribution in kube-proxy 2025-03-19 08:46:17 -04:00
endpointschangetracker.go Clarify hostname vs node name in kube-proxy 2025-03-19 08:46:15 -04:00
endpointschangetracker_test.go Clean up NewServiceChangeTracker/NewEndpointsChangeTracker args 2024-12-14 12:12:42 -05:00
endpointslicecache.go Implement PreferSameNode traffic distribution in kube-proxy 2025-03-19 08:46:17 -04:00
endpointslicecache_test.go Make change trackers just ignore the "wrong" IP family 2024-12-14 12:12:35 -05:00
node.go pkg/proxy/healthcheck: rename 'proxier' to 'proxy' 2025-01-08 17:26:47 +05:30
node_test.go Improve logging on kube-proxy exit 2023-09-11 00:50:29 +08:00
OWNERS Add more labels (esp. area/kube-proxy) to sig-network OWNERS 2023-03-18 11:29:38 -04:00
servicechangetracker.go Clean up NewServiceChangeTracker/NewEndpointsChangeTracker args 2024-12-14 12:12:42 -05:00
servicechangetracker_test.go Clean up NewServiceChangeTracker/NewEndpointsChangeTracker args 2024-12-14 12:12:42 -05:00
serviceport.go Remove usage of TopologyAwareHints feature-gate from kube-proxy packages. 2025-03-14 12:06:40 -07:00
topology.go Implement PreferSameNode traffic distribution in kube-proxy 2025-03-19 08:46:17 -04:00
topology_test.go Implement PreferSameNode traffic distribution in kube-proxy 2025-03-19 08:46:17 -04:00
types.go pkg/proxy/nftables: handle traffic to cluster ip 2024-01-21 19:58:37 +05:30