Skip to content

Commit

Permalink
feat: add health docs to podOverride
Browse files Browse the repository at this point in the history
  • Loading branch information
HookWoods committed Sep 3, 2024
1 parent 630f66b commit 21e6ce7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/src/next/guide/recipes/overriding-pod-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,31 @@ spec:
effect: "NoSchedule" // [!code focus]
```

## Customizing agones health check

Agones uses a health check to determine if a server is ready and healthy.
You may want to customize the health check to better suit your needs
(e.g. your server takes 1 minute to start, you may want to increase the `initial_delay_seconds` to 60).

```yaml
apiVersion: shulkermc.io/v1alpha1
kind: MinecraftServerFleet
metadata:
name: my-server
spec:
clusterRef:
name: my-cluster
replicas: 1
template:
spec: // [!code focus]
podOverrides: // [!code focus]
health: // [!code focus]
disabled: false // [!code focus]
initial_delay_seconds: 30 // [!code focus]
period_seconds: 15 // [!code focus]
failureThreshold: 5 // [!code focus]
```

## Mounting volumes <Badge type="tip" text="servers" />

Additional volumes can be injected to the `MinecraftServer`'s
Expand Down

0 comments on commit 21e6ce7

Please sign in to comment.