Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add helpful note to edit-first-gameserver-go #3846

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions site/content/en/docs/Getting Started/edit-first-gameserver-go.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,24 @@ kubectl create -f gameserver.yaml
kubectl apply -f gameserver.yaml
```

{{< alert title="Note" color="info">}}
If you changed `main.go` again and want to apply the changes to the new game servers, then you also need
to modify the `gamerserver.yaml` file's
[`imagePullPolicy`](https://kubernetes.io/docs/concepts/containers/images/#updating-images) to be `Always`,
or the node may use a cached copy of the image, which doesn't have the new changes.

```yaml
spec:
containers:
- name: simple-game-server
image: ${REGISTRY}/simple-game-server:${TAG}
imagePullPolicy: Always
```

Alternatively, you can also manually increment the `version` field in the `Makefile` file and change the `TAG`
variable accordingly.
{{< /alert >}}

### Check the GameServer Status
```bash
kubectl describe gameserver
Expand Down
Loading