googleforgames / agones

Dedicated Game Server Hosting and Scaling for Multiplayer Games on Kubernetes

Home Page:https://agones.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shared Pod IPs with GameServer Addresses

markmandel opened this issue · comments

Is your feature request related to a problem? Please describe.
Sometimes, it's very useful to send traffic direct to the Pod address rather than through the node, for example if you are doing ipv6 without nat, so that traffic can go straight to the Pod within a network.

Describe the solution you'd like

Append the Pod IPs[] array to the GameServer.Status.Addresses[], under a key of PodIP (or similar).

Describe alternatives you've considered

Hacking Kube-cluster setup to get IPv6 in the right order.

Additional context

Should probably be implemented here:

gs.Status.Addresses = addrs

We should also add some docs somewhere around:
https://agones.dev/site/docs/reference/gameserver/#primary-address-vs-addresses