k3s/pkg
Kubernetes Submit Queue 4492337dbf
Merge pull request #65803 from honkiko/ipvs-add-addrtype-match
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

ipvs: add addrtype match for nodeport

**What this PR does / why we need it**:
before this PR:
```
-A KUBE-SERVICES -m comment --comment "Kubernetes nodeport TCP port for masquerade purpose" -m set --match-set KUBE-NODE-PORT-TCP dst -j KUBE-NODE-PORT
-A KUBE-SERVICES -m comment --comment "Kubernetes service cluster ip + port for masquerade purpose" -m set --match-set KUBE-CLUSTER-IP dst,dst -j KUBE-MARK-MASQ
-A KUBE-SERVICES -m set --match-set KUBE-CLUSTER-IP dst,dst -j ACCEPT
-A KUBE-NODE-PORT -p tcp -m comment --comment "Kubernetes nodeport TCP port with externalTrafficPolicy=local" -m set --match-set KUBE-NODE-PORT-LOCAL-TCP dst -j RETURN
-A KUBE-NODE-PORT -j KUBE-MARK-MASQ
```
after this PR:
```
-A KUBE-NODE-PORT -p tcp -m comment --comment "Kubernetes nodeport TCP port with externalTrafficPolicy=local" -m set --match-set KUBE-NODE-PORT-LOCAL-TCP dst -j RETURN
-A KUBE-NODE-PORT -p tcp -m comment --comment "Kubernetes nodeport TCP port for masquerade purpose" -m set --match-set KUBE-NODE-PORT-TCP dst -j KUBE-MARK-MASQ
-A KUBE-SERVICES -m comment --comment "Kubernetes service cluster ip + port for masquerade purpose" -m set --match-set KUBE-CLUSTER-IP dst,dst -j KUBE-MARK-MASQ
-A KUBE-SERVICES -m set --match-set KUBE-CLUSTER-IP dst,dst -j ACCEPT
-A KUBE-SERVICES -m addrtype --dst-type LOCAL -j KUBE-NODE-PORT
```

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #65459

**Special notes for your reviewer**:
manually tested cases:
- ClusterIP distributed to pod on same node
- ClusterIP distributed to pod on other node
- NodePort distributed to pod on same node
- NodePort distributed to pod on other node

**Release note**:

```release-note

```
2018-08-13 00:28:43 -07:00
..
api Use OWNERS-based labeling for kind/api-change 2018-08-10 13:48:56 -07:00
apis Use OWNERS-based labeling for kind/api-change 2018-08-10 13:48:56 -07:00
auth Improve multi-authorizer errors 2018-07-06 10:55:17 -04:00
capabilities
client autogenerated 2018-08-09 19:35:03 +03:00
cloudprovider fix azure disk create failure due to sdk upgrade 2018-08-10 05:35:50 +00:00
controller ensure ScheduleDSPods respects tainted nodes 2018-08-09 18:01:51 -07:00
credentialprovider fix acr sp access issue 2018-07-20 08:39:31 +00:00
features Merge pull request #67077 from vikaschoudhary16/scope-selectors-beta 2018-08-09 19:31:04 -07:00
fieldpath fieldpath: Add tests for missing cases 2018-07-12 10:26:18 +02:00
generated run "make update" 2018-07-30 15:56:39 +08:00
kubeapiserver node authz/ad externalization 2018-08-09 10:57:30 +08:00
kubectl Merge pull request #67274 from seans3/kubectl-extract-1 2018-08-10 23:19:03 -07:00
kubelet kubelet: plumb context for log requests 2018-08-10 17:35:46 -07:00
kubemark Merge pull request #66284 from stewart-yu/stewart-sharedtype-move 2018-07-30 19:50:36 -07:00
master autogenerated 2018-08-09 19:35:03 +03:00
printers Break annotations with newlines and shorten length 2018-07-31 19:22:50 -04:00
probe
proxy Merge pull request #65803 from honkiko/ipvs-add-addrtype-match 2018-08-13 00:28:43 -07:00
quota Merge pull request #66351 from vikaschoudhary16/fix-scopeselector-exist-operator 2018-08-06 07:13:14 -07:00
registry Fix scope.Kind of CONNECT subresources. 2018-08-06 18:59:52 -07:00
routes
scheduler Merge pull request #66656 from wackxu/fixappversion 2018-08-11 23:25:33 -07:00
security Cleanup & fix PodSecurityPolicy field path usage 2018-07-18 17:47:32 -07:00
securitycontext
serviceaccount
ssh
util Merge pull request #64815 from dixudx/hostname_empty 2018-08-03 17:13:32 -07:00
version
volume Merge pull request #67140 from NetApp/multipath-race-fix 2018-08-10 17:01:16 -07:00
watch/json
windows/service
.import-restrictions
BUILD
OWNERS