<p>I set up a kubernetes cluster on GKE that runs a UDP game server. How do I ask kubernetes to start a new container from a game client, and how do I then get the ip address and port of that container so I can communicate with the server from the client.</p>

Ben Baldwin
<p>You can create a service in Google Kubernetes Engine and can be accessed by public IP address. You can create a load balancer autoscaler service which internally takes care of creating new containers when there is increase in traffic.</p>
<p>Here are some documentation for creating <a href="https://cloud.google.com/kubernetes-engine/docs/how-to/exposing-apps" rel="nofollow noreferrer">service to access cluster</a> and creating a <a href="https://cloud.google.com/architecture/udp-with-network-load-balancing" rel="nofollow noreferrer">load balancer service</a>.There are other equivalent ways to start new pods on demand using <a href="https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-api/" rel="nofollow noreferrer">Kubernetes API</a>.</p>
<p>You can get IP address by using this command: <code>kubectl get pods -o wide</code></p>
