Game Server Deployment Rollout
This represents the rollout state. This is part of the game server deployment. To get more information about GameServerDeploymentRollout, see:
How-to Guides
Example Usage
Game Service Deployment Rollout Basic
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.gameservices.GameServerDeployment;
import com.pulumi.gcp.gameservices.GameServerDeploymentArgs;
import com.pulumi.gcp.gameservices.GameServerConfig;
import com.pulumi.gcp.gameservices.GameServerConfigArgs;
import com.pulumi.gcp.gameservices.inputs.GameServerConfigFleetConfigArgs;
import com.pulumi.gcp.gameservices.GameServerDeploymentRollout;
import com.pulumi.gcp.gameservices.GameServerDeploymentRolloutArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var defaultGameServerDeployment = new GameServerDeployment("defaultGameServerDeployment", GameServerDeploymentArgs.builder()
.deploymentId("tf-test-deployment")
.description("a deployment description")
.build());
var defaultGameServerConfig = new GameServerConfig("defaultGameServerConfig", GameServerConfigArgs.builder()
.configId("tf-test-config")
.deploymentId(defaultGameServerDeployment.deploymentId())
.description("a config description")
.fleetConfigs(GameServerConfigFleetConfigArgs.builder()
.name("some-non-guid")
.fleetSpec(serializeJson(
jsonObject(
jsonProperty("replicas", 1),
jsonProperty("scheduling", "Packed"),
jsonProperty("template", jsonObject(
jsonProperty("metadata", jsonObject(
jsonProperty("name", "tf-test-game-server-template")
)),
jsonProperty("spec", jsonObject(
jsonProperty("ports", jsonArray(jsonObject(
jsonProperty("name", "default"),
jsonProperty("portPolicy", "Dynamic"),
jsonProperty("containerPort", 7654),
jsonProperty("protocol", "UDP")
))),
jsonProperty("template", jsonObject(
jsonProperty("spec", jsonObject(
jsonProperty("containers", jsonArray(jsonObject(
jsonProperty("name", "simple-udp-server"),
jsonProperty("image", "gcr.io/agones-images/udp-server:0.14")
)))
))
))
))
))
)))
.build())
.build());
var defaultGameServerDeploymentRollout = new GameServerDeploymentRollout("defaultGameServerDeploymentRollout", GameServerDeploymentRolloutArgs.builder()
.deploymentId(defaultGameServerDeployment.deploymentId())
.defaultGameServerConfig(defaultGameServerConfig.name())
.build());
}
}
Import
GameServerDeploymentRollout can be imported using any of these accepted formats
$ pulumi import gcp:gameservices/gameServerDeploymentRollout:GameServerDeploymentRollout default projects/{{project}}/locations/global/gameServerDeployments/{{deployment_id}}/rollout
$ pulumi import gcp:gameservices/gameServerDeploymentRollout:GameServerDeploymentRollout default {{project}}/{{deployment_id}}
$ pulumi import gcp:gameservices/gameServerDeploymentRollout:GameServerDeploymentRollout default {{deployment_id}}
Properties
This field points to the game server config that is applied by default to all realms and clusters. For example, projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config
.
The deployment to rollout the new config to. Only 1 rollout must be associated with each deployment.
The game_server_config_overrides contains the per game server config overrides. The overrides are processed in the order they are listed. As soon as a match is found for a cluster, the rest of the list is not processed. Structure is documented below.