diff --git a/docs/images/hot-update.png b/docs/images/hot-update.png new file mode 100644 index 0000000..6a74b54 Binary files /dev/null and b/docs/images/hot-update.png differ diff --git a/docs/images/update-priority.png b/docs/images/update-priority.png new file mode 100644 index 0000000..aaaf925 Binary files /dev/null and b/docs/images/update-priority.png differ diff --git a/docs/images/warning-ding.png b/docs/images/warning-ding.png new file mode 100644 index 0000000..2e3aee9 Binary files /dev/null and b/docs/images/warning-ding.png differ diff --git a/docs/中文/快速开始/安装OpenKruiseGame.md b/docs/中文/快速开始/安装OpenKruiseGame.md new file mode 100644 index 0000000..4e380dc --- /dev/null +++ b/docs/中文/快速开始/安装OpenKruiseGame.md @@ -0,0 +1,38 @@ +## 安装Kruise + +建议采用 helm v3.5+ 来安装 Kruise + +```shell +# Firstly add openkruise charts repository if you haven't do this. +$ helm repo add openkruise https://openkruise.github.io/charts/ + +# [Optional] +$ helm repo update + +# Install the latest version. +$ helm install kruise openkruise/kruise --version 1.3.0 --set featureGates="PodProbeMarkerGate=true" +``` + +## 安装Kruise-Game + +### 编译安装 + +0) 编辑Makefile,更改其中{IMG}字段,将其改为自身的仓库地址 + +1) 编译并打包kurise-game-manager镜像 + +```bash +make docker-build +``` + +2) 将打包完成的镜像上传至镜像仓库 + +```bash +make docker-push +``` + +3) 在Kubernetes集群(~/.kube/conf)部署kruise-game-manager组件 + +```bash +make deploy +``` diff --git a/docs/中文/快速开始/游戏服水平伸缩.md b/docs/中文/快速开始/游戏服水平伸缩.md new file mode 100644 index 0000000..1671364 --- /dev/null +++ b/docs/中文/快速开始/游戏服水平伸缩.md @@ -0,0 +1,173 @@ +## OpenKruiseGame的伸缩特性 + +OKG提供游戏服状态设置的能力,您可以手动/自动(服务质量功能)地设置游戏服的运维状态或删除优先级。当缩容时,GameServerSet负载会根据游戏服的状态进行缩容选择,缩容规则如下: + +1)根据游戏服的opsState缩容。按顺序依次缩容opsState为`WaitToBeDeleted`、`None`、`Maintaining`的游戏服 + +2)当opsState相同时,按照DeletionPriority(删除优先级)缩容,优先删除DeletionPriority大的游戏服 + +3)当opsState与DeletionPriority都相同时,优先删除名称尾部序号较大的游戏服 + +### 示例 + +部署一个副本为5的游戏服: + +```bash +cat <Issue,给OpenKruiseGame提建议或者讨论游戏云原生化的最佳实践。 +* 查看[快速开始](./快速开始),安装并体验OpenKruiseGame。 +* 查看[开发指南](./开发者手册/如何贡献代码.md),为OpenKruiseGame(OKG)提交代码。 +* 提交[Issue](https://github.com/openkruise/kruise-game/issues),给OpenKruiseGame提建议或者讨论游戏云原生化的最佳实践。 * 加入钉钉群(44862615),在线和OpenKruiseGame(OKG)的核心贡献者讨论。 * 发送E-mail,联系我们。邮箱地址:zhongwei.lzw@alibaba-inc.com。