Appearance
Upgrade and Remove Deployments
How to upgrade cloud deployments to newer versions and remove them when no longer needed.
Appearance
How to upgrade cloud deployments to newer versions and remove them when no longer needed.
When deploying a game server to an Environment, we actually deploy a Helm chart to the Environment first. The Helm chart is a package that describes the Kubernetes resources and configurations that make up the game server and its dependencies.
We maintain a metaplay-gameserver
Helm chart that gets updated with new SDK releases. Not all SDK versions are backwards compatible with old charts, so we generally recommend updating your Cloud Deployment to use the latest chart version when you update the SDK. This brings in the latest security fixes and features to keep your Cloud Deployments up to date.
You can see your current Helm chart version from the environment details page in the developer portal.
There are three Helm operations that you can perform on a Cloud Deployment:
Updating an existing deployment is simple. You change the active chart version to a new version in your configs and do a new deployment.
The currently active chart version is defined by serverChartVersion
in your metaplay-project.yaml
. To update to a new version, simply change the value:
serverChartVersion: 0.x.y
serverChartVersion: 0.8.0
With the value changed, you can simply do a new deployment and the Metaplay CLI will upgrade the Cloud Deployment to use the new chart version.
metaplay deploy server
Removing a Cloud Deployment will delete all its resources, secrets and configurations from the Environment. This is useful when you no longer need the Cloud Deployment or when you want to return it to a clean, empty state.
⚠️ Heads-Up: Data Loss Ahead!
Removing a Cloud Deployment is a destructive operation and cannot be undone. All data stored in the Cloud Deployment will be lost.
To remove a Cloud Deployment from an Environment, simply run:
metaplay remove server [ENVIRONMENT]