shutdown
Notified Agones to shut down this instance and release any allocations for it in the process. The state will immediately be set to Shutdown
and the pod of this instance will be stopped and deleted. The actual instance shutdown is triggered only through this method call, and the instance will be shut down by the pod triggering a SIGTERM
signal during termination.
This method is preferred over a normal shutdown (e.g., using System.exit) as it changes the status within the GameServer resource earlier, allowing the rest of the infrastructure to prepare for the shutdown of this instance. It also makes the intent more clear, as this means that the instance has not just randomly crashed.