Support for setting the externalTrafficPolicy parameter and client IP address preservation independently of each other

When provisioning a network load balancer for a Kubernetes service of type LoadBalancer, you can now independently specify:

  • whether or not to terminate requests at the worker node that has its client IP address specified in the IP packet header
  • whether or not to preserve client IP addresses in IP packet headers

Continue to use the externalTrafficPolicy parameter to terminate requests at the receiving worker node, or to proxy requests to other worker nodes in the cluster.

Use the new oci-network-load-balancer.oraclecloud.com/is-preserve-source annotation to preserve, or to prevent the preservation of, client IP addresses.

Note that if externalTrafficPolicy is set to Cluster, client IP addresses are not preserved regardless of the value of the oci-network-load-balancer.oraclecloud.com/is-preserve-source annotation.

For more information, see: