Description of problem: I have a customer using the ovn-kubernetes network provider and needs to use ClusterIP, but it doesn't work properly. Although internalTrafficPolicy is set to Local, it works as set to Cluster. Version-Release number of selected component (if applicable): 4.9 How reproducible: Always Steps to Reproduce: 1. Prepare a deployment that has pods on many nodes (i.e: apache server) 2. Create a clusterIP service and set internalTrafficPolicy to "local" 3. Try to reach the apache svc from one pod and check which pod gets the request, it should end up in pod/s in the same node. Actual results: Requests are load-balanced without honoring the internalTrafficPolicy. Expected results: Requests are sent to local endpoints to the node (if any). Additional info:
Hi, So we know that the feature ITP became alpha in v1.21 https://kubernetes.io/docs/concepts/services-networking/service-traffic-policy/ and 4.9 openshift is v1.22 k8s. However we haven't yet implemented internaltrafficpolicy=local on OVN-K yet and its something we intend to support. We acknowledge this bug and will work towards a fix.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5069