Game Servers Management on Kubernetes
Go to file
ChrisLiu a182e06aa5 add github workflow
Signed-off-by: ChrisLiu <chrisliu1995@163.com>
2022-09-21 17:14:23 +08:00
.github/workflows add github workflow 2022-09-21 17:14:23 +08:00
apis/v1alpha1 Kruise-Game init 2022-09-21 14:27:27 +08:00
config Kruise-Game init 2022-09-21 14:27:27 +08:00
docs Kruise-Game init 2022-09-21 14:27:27 +08:00
hack Kruise-Game init 2022-09-21 14:27:27 +08:00
pkg exec service quality action 2022-09-21 16:46:05 +08:00
scripts Kruise-Game init 2022-09-21 14:27:27 +08:00
test/e2e Kruise-Game init 2022-09-21 14:27:27 +08:00
.dockerignore Kruise-Game init 2022-09-21 14:27:27 +08:00
.gitignore Kruise-Game init 2022-09-21 14:27:27 +08:00
Dockerfile Kruise-Game init 2022-09-21 14:27:27 +08:00
LICENSE Initial commit 2022-08-22 19:30:40 +08:00
Makefile Kruise-Game init 2022-09-21 14:27:27 +08:00
OWNERS Add OWNERS 2022-08-22 19:33:38 +08:00
PROJECT Kruise-Game init 2022-09-21 14:27:27 +08:00
README.md Kruise-Game init 2022-09-21 14:27:27 +08:00
go.mod Kruise-Game init 2022-09-21 14:27:27 +08:00
go.sum Kruise-Game init 2022-09-21 14:27:27 +08:00
main.go Kruise-Game init 2022-09-21 14:27:27 +08:00

README.md

kruise-game

Introduction

Kruise-Game is an open source project based on OpenKruise, to solve the problem of game server landing in Kubernetes.

OpenKruiseGame logo

Why is Kruise-Game?

Game servers are stateful services, and there are differences in the operation and maintenance of each game server, which also increases with time. In Kubernetes, general workloads manages a batch of game servers according to pod templates, which cannot take into account the differences in game server status. Batch management and directional management are in conflict in k8s. Kruise-Game was born to resolve that. Kruise-Game contains two CRDs, GameServer and GameServerSet:

  • GameServer is responsible for the management of game server status. Users can customize the game server status to reflect the differences between game servers;
  • GameServerSet is responsible for batch management of game servers. Users can customize update/reduction strategies according to the status of game servers.

Features:

  • Game server status management
    • Mark game servers status without effecting to its lifecycle
  • Flexible scaling/deletion mechanism
    • Support scaling down by user-defined status & priority
    • Support specifying game server to delete directly
  • Flexible update mechanism
    • Support hot update (in-place update)
    • Support updating game server by user-defined priority
    • Can control the range of the game servers to be updated
    • Can control the pace of the entire update process
  • Custom service quality
    • Support probing game servers containers and mark game servers status automatically

Quick Start

License

Copyright 2022.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.