Closed Som-Som-CC closed 5 months ago
On K8s with Multus the default route can be configured to use a different network attachment. One can keep having the single eth0 interface only. That may be a more flexible solution than this enhancement proposal.
See https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/docs/how-to-use.md
Merged to main
In some setups it is preferable to use a specific interface for communication.
ListenAndServe
has an address parameter where it is possible to set IP address to listen on. Client, however, does not have such direct support.See:
For HTTP(S) v1 probably a bit easier is to code like this:
For h2c and h2 probably 2 DialTLS function sets are needed, with the option of Dialer with and without
LocalAddr
. Note that in http2 package DialContext is not available at the time of writing.