Minecraft Server Sets

A MinecraftServerSet is based on a Kubernetes ReplicaSet, which is a controller that ensures a specified number of pod replicas are running at any given time. It is a part of the MinecraftDeployment resource, which is used to create multiple Minecraft servers. The MinecraftServerSet is used to create a single Minecraft Server, which is responsible for the actual Minecraft server instance.

Getting started with Minecraft Server Sets

To get started with MinecraftServerSets, you need to create a MinecraftDeployment resource. This will automatically create a MinecraftServerSet for you.

This means that you don't need to create a MinecraftServerSet yourself. It's automatically created when you create a MinecraftDeployment. It is also not recommended to modify the MinecraftServerSet directly, as it is managed by the MinecraftDeployment and may cause issues if modified.

Spec Fields

The MinecraftServerSetSpec outlines the desired configuration of a set of Minecraft servers. The following properties are configurable:

  • Name
    replicas
    Type
    integer
    Description

    The desired number of server instances in the set. This allows for the scaling of Minecraft servers to accommodate varying loads and player counts.

  • Name
    template
    Type
    MinecraftServerTemplateSpec
    Description

    A template describing the common configuration for all servers in the set. This includes server version, settings, mods, and other configurations.

Status Fields

The MinecraftServerSetStatus reflects the observed state of the MinecraftServerSet, providing insights into the operational status of the servers:

  • Name
    replicas
    Type
    integer
    Description

    The current number of replicas in the server set. This may differ from the desired count during scaling operations or if there are issues with starting some server instances.

  • Name
    ingame
    Type
    integer
    Description

    The number of servers that are currently being used. This helps in understanding how many servers are actively being used.

  • Name
    ready
    Type
    integer
    Description

    The number of servers that are ready to accept players. Servers may not be ready immediately upon startup due to initialization processes.


Using an SDK

If you want to use an API to deploy Minecraft server, you can use on of our official SDKs. They offer a simple way to interact with the Strela API and create and manage MinecraftServerSets.

Was this page helpful?