.NET Core game server

This sample, located here, is a simple .NET Core Web API app that implements GSDK. You can install it on your Kubernetes cluster by running the following command:

kubectl apply -f https://raw.githubusercontent.com/PlayFab/thundernetes/main/samples/netcore/sample.yaml

NOTE: To read about the fields that you need to specify for a GameServerBuild, you can check this document.

Try using kubectl get gs to see the running game servers, you should see something similar to this:

dgkanatsios@desktopdigkanat:thundernetes$ kubectl get gs
NAME                                   HEALTH    STATE        PUBLICIP      PORTS      SESSIONID
gameserverbuild-sample-netcore-ayxzh   Healthy   StandingBy   52.183.89.4   80:10001
gameserverbuild-sample-netcore-mveex   Healthy   StandingBy   52.183.89.4   80:10000

and kubectl get gsb to see the status of the GameServerBuild:

NAME                             STANDBY   ACTIVE   CRASHES   HEALTH
gameserverbuild-sample-netcore   2/2       0        0         Healthy

NOTE: gs and gsb are just short names for GameServer and GameServerBuild, respectively. You could just type kubectl get gameserver or kubectl get gameserverbuild instead.

To allocate a game server (convert its state to active) and scale your GameServerBuild, you can check here.