Closed yzaccc closed 2 years ago
Well as discussed in issue https://github.com/kubernetes/kubernetes/issues/103000, this test encountered same problem for iptable mode kube-proxy.
Expected to use same client reach to the session affinity service via different port, the expected from/to pods peer should be same for port 80 and 81.
But the reality is the destination pods are different, as below:
Testing connections to different ports of sesson affinity service, should use same from/to peers: map[pod-1:pod-4 pod-2:pod-4 pod-3:pod-4 pod-4:pod-4]
For port 80:
for port 81:
red pipelines are expected as iptables behavior in issue kubernetes/kubernetes#103000. Merging this PR.
Commits:
Goal:
Executed test plan: (setup)
app=test-session-affinity
to pod-3 and pod-4result: Session affinity service, from/to peers: map[pod-1:pod-3 pod-2:pod-4 pod-3:pod-3 pod-4:pod-3]