-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add mapping of current POD IP to external IP #10
fix: add mapping of current POD IP to external IP #10
Conversation
Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com>
Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com>
Why are we mapping Pod IP and not Node IP to external IP? The forwarder should be running on the hostnetwork:true Node networking namespace... |
@edwarnicke yes, you're correct for mechanisms and we already swapping |
Ah... so how are we getting an External IP for the nsmgr-proxy Pod? |
In case of interdomain we are getting it via DNS. |
I mean how is the nsmgr-proxy Pod figuring out what its externalIP is for purposes of registering it upstream to the registry. |
nsmgr-proxy is not need to figuring out what its externalIP, it just can swap one address to another from mapip file. |
@denis-tingaikin Is the nsmgr-proxy also running in hostNetwork:true ? |
@edwarnicke Currently is not, and I think we may try to run in hostNetwork as an alternative to this patch, but I feel this patch direction is more natural and flexible. WDYT? |
@denis-tingaikin I'm very much in favor of not running nsmgr-proxy in hostNetwork:true. I am a bit confused though because this PR seems to go looking for the ExternalIP for the Node, and is using that... which I would expect to be mapped to the Nodes InternalIP... and thus be delivered to hostNetwork:true What am I misssing? |
With this PR we'll add map current POD IP to External nodeName of the POD where cmd-map-ip-k8s is running. In this variant nsmgr-proxy will not have a Note: To access to ${externaIP}:${port} we have this line in deployment: https://github.com/networkservicemesh/deployments-k8s/blob/main/apps/nsmgr-proxy/nsmgr-proxy.yaml#L24 So with this patch we'll not need to modify somehow cmd-nsmgr-proxy, but need to add nodeName ref in cmd-ip-map sidecar. |
Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com>
Ah, got it, hostPort :) |
Happy to merge this... I wish we didn't need hostPort... but I don't know what other options we have to solve this problem. So if something creative occurs to you, that's good... but otherwise, we can continue with this :) |
Signed-off-by: denis-tingajkin denis.tingajkin@xored.com
Motivation
Related to networkservicemesh/sdk#1015