kubernetes/pkg
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
..
api Merge pull request #129970 from mortent/AddResourceV1beta2API 2025-03-26 09:10:47 -07:00
apis Merge pull request #130468 from jingyuanliang/PodAntiAffinity 2025-04-24 12:00:34 -07:00
auth wire in ctx to rbac plugins 2024-09-17 20:04:02 +03:00
capabilities remove import doc comments 2024-12-02 16:59:34 +01:00
client Fix test cases that may potentially cause a panic. 2025-03-11 17:41:37 +08:00
cluster/ports remove import doc comments 2024-12-02 16:59:34 +01:00
controller Merge pull request #130333 from kmala/job 2025-04-25 17:55:22 -07:00
controlplane fix: use correct apiextensions v1 API instead of apiregistration v1 2025-04-21 08:44:04 +08:00
credentialprovider Merge pull request #128152 from stlaz/ensure-secret-images 2025-03-17 07:09:49 -07:00
features Stop exposing list-via-watch from the server 2025-04-18 09:21:23 -04:00
fieldpath remove import doc comments 2024-12-02 16:59:34 +01:00
generated Merge pull request #130468 from jingyuanliang/PodAntiAffinity 2025-04-24 12:00:34 -07:00
kubeapiserver Allow disabling caching for webhook authorizers when using apiserver.config.k8s.io/v1{alpha1,beta1}.AuthorizationConfiguration (#129237) 2025-04-23 13:30:52 -07:00
kubectl remove import doc comments 2024-12-02 16:59:34 +01:00
kubelet kubelet: Use node addresses from informer 2025-04-25 03:15:42 +00:00
kubemark remove runonce mode 2024-11-07 19:54:11 +08:00
printers Add resource v1beta2 API 2025-03-26 14:41:09 +00:00
probe remove import doc comments 2024-12-02 16:59:34 +01:00
proxy nftables: cleanup service chain checks 2025-04-27 01:05:45 +05:30
quota/v1 Add resource v1beta2 API 2025-03-26 14:41:09 +00:00
registry Always check for Immutable selector in Deployment Replicaset Daemonset (#131017) 2025-04-23 15:58:37 -07:00
routes Move public key getter to interface 2024-06-25 18:10:08 -04:00
scheduler Merge pull request #131425 from carlory/follow-up-128810 2025-04-24 04:56:29 -07:00
security remove import doc comments 2024-12-02 16:59:34 +01:00
securitycontext remove import doc comments 2024-12-02 16:59:34 +01:00
serviceaccount fixing various unit tests on Windows that create abstract sockets 2025-02-13 15:41:33 -08:00
util kube-proxy: log errors during proxy boot 2025-04-26 16:06:18 +05:30
volume Merge pull request #131408 from gnufied/remove-unknown-resizing-error 2025-04-25 09:41:24 -07:00
windows/service Windows node graceful shutdown 2024-11-05 17:46:22 +00:00
.import-restrictions
OWNERS