安装OpenKruiseGame需安装Kruise与Kruise-Game,且要求 Kubernetes版本 >= 1.16
建议采用 helm v3.5+ 来安装 Kruise
# 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"
$ helm install kruise-game openkruise/kruise-game --version 0.2.0
-
编辑Makefile,更改其中{IMG}字段,将其改为自身的仓库地址
-
编译并打包kruise-game-manager镜像
make docker-build
- 将打包完成的镜像上传至镜像仓库
make docker-push
- 在Kubernetes集群(~/.kube/conf)部署kruise-game-manager组件
make deploy