Skip to main content

Complete Deployment Example

This section provides production-ready Kubernetes manifests for deploying Gate.

ConfigMap

Store your Gate configuration in a ConfigMap:

Deployment

Deploy Gate as a Deployment for easy scaling:

Service (NodePort)

Expose Gate using a NodePort service:

Service (LoadBalancer)

For cloud deployments, use a LoadBalancer:

Backend Server Example

StatefulSet for Minecraft Servers

Deploy backend Minecraft servers as a StatefulSet:

Headless Service for Server Discovery

Create a headless service for backend servers:

Spigot ConfigMap

Configure backend servers for BungeeCord/Velocity mode:

Using Kustomize

Base Kustomization

Create a kustomization.yaml file:

Environment-Specific Overlays

Create overlays for different environments: Production overlay (overlays/production/kustomization.yaml):
Development overlay (overlays/dev/kustomization.yaml):

Deploy with Kustomize

Complete Bundle

The Gate repository includes a complete bundle.yaml with all resources:

Health Checks

TCP Socket Probes

For basic health checking:

HTTP Probes

If Gate exposes an HTTP health endpoint:

Environment Variables

Configure Gate using environment variables:

Next Steps

Scaling

Configure autoscaling and load balancing

Configuration

Explore all configuration options