Skip to content

Commit

Permalink
fix kruise-game doc (#162)
Browse files Browse the repository at this point in the history
Signed-off-by: skkkkkkk <[email protected]>
Co-authored-by: skkkkkkk <[email protected]>
  • Loading branch information
songkang7 and skkkkkkk authored Feb 5, 2024
1 parent ee2cb67 commit 544cf94
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ spec:
- name: pvc-oss #挂载oss对应pvc
mountPath: "/app/sgame.config" #容器中的目录及文件
subPathExpr: $(POD_NAME)/sgame.config #对应oss目录及文件
volumes:
- name: pvc-oss
persistentVolumeClaim:
claimName: pvc-oss
volumes:
- name: pvc-oss
persistentVolumeClaim:
claimName: pvc-oss
```
这样一来,开服前只需准备好游戏服对应配置并上传到bucket对应路径中,再部署GameServerSet或调整Replicas即可。
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Goliang Client
# Golang Client

如果要在一个 Golang 项目中对 OKG 的资源做 create/get/update/delete 这些操作、或者通过 informer 做 list-watch,你需要一个支持 OKG 的 client。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ spec:
value: "tcp"
# - name: Fixed
# 是否固定映射关系,默认不固定,pod删除后会生成新的外部IP及端口
# value: true
# value: "true"
gameServerTemplate:
spec:
containers:
Expand Down Expand Up @@ -756,7 +756,7 @@ spec:
- name: PortProtocols
value: "xxx"
- name: Fixed
value: true
value: "true"
gameServerTemplate:
spec:
containers:
Expand Down
8 changes: 4 additions & 4 deletions kruisegame/best-practices/pve-game.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ spec:
- name: pvc-oss
mountPath: "/app/sgame.config"
subPathExpr: $(POD_NAME)/sgame.config
volumes:
- name: pvc-oss
persistentVolumeClaim:
claimName: pvc-oss
volumes:
- name: pvc-oss
persistentVolumeClaim:
claimName: pvc-oss
```
As such, before launching the server, it is only necessary to prepare the corresponding configurations for the game server and upload them to the respective paths in the bucket. Then, deploy the GameServerSet or adjust the Replicas as needed.
Expand Down
2 changes: 1 addition & 1 deletion kruisegame/developer-manuals/go-client.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Goliang Client
# Golang Client

If you want to create/get/update/delete those OKG resources in a Golang project or list-watch them using informer,
you may need a Golang client for OKG.
Expand Down
4 changes: 2 additions & 2 deletions kruisegame/user-manuals/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ spec:
value: "tcp"
# - name: Fixed
# Specify whether the mapping relationship is fixed. By default, the mapping relationship is not fixed, that is, a new external IP address and port are generated after the pod is deleted.
# value: true
# value: "true"
gameServerTemplate:
spec:
containers:
Expand Down Expand Up @@ -756,7 +756,7 @@ spec:
- name: PortProtocols
value: "xxx"
- name: Fixed
value: true
value: "true"
gameServerTemplate:
spec:
containers:
Expand Down

0 comments on commit 544cf94

Please sign in to comment.