Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion terraria/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: gameplane.local/module/v1
name: terraria
displayName: Terraria
version: 2.2.1
version: 2.2.2
game: terraria
categories: [Sandbox, Survival, Adventure, Modded]
summary: Terraria + tModLoader dedicated server (passivelemon/terraria-docker) with a vanilla/tModLoader version picker and a tModLoader ModPacks volume. Console via container stdin.
Expand Down
2 changes: 1 addition & 1 deletion terraria/specs.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Declared ports under `spec.ports`:
## 8. Key Invariants & Security

- **Network Wake Protocol**: Declares `wakeProtocol: terraria` under `spec.ports[game]` to allow wake-on-traffic.
- **Readiness Probe**: Uses TCP socket probe against port `7777`.
- **Readiness Probe**: An `exec` probe reads `/proc/net/tcp` for a socket listening on port `7777` (`0x1E61`). It never connects: a `tcpSocket` probe's connect-and-close crashes the server (`ObjectDisposedException` in `Netplay.ServerLoop`) and crash-loops the pod.

---

Expand Down
7 changes: 5 additions & 2 deletions terraria/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@ spec:

probes:
readiness:
tcpSocket:
port: game
# Ready once the server LISTENs on 7777 (0x1E61 in /proc/net/tcp). Never
# tcpSocket: the kubelet's connect-and-close crashes the server
# (ObjectDisposedException in Netplay.ServerLoop) and crash-loops the pod.
exec:
command: ["sh", "-c", "grep -qsE ':1E61 [0-9A-F]+:[0-9A-F]{4} 0A' /proc/net/tcp /proc/net/tcp6"]
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 30
Expand Down
2 changes: 1 addition & 1 deletion tmodloader/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: gameplane.local/module/v1
name: tmodloader
displayName: tModLoader
version: 1.0.0
version: 1.0.1
game: tmodloader
categories: [Sandbox, Survival, Adventure, Modded]
summary: tModLoader dedicated server for modded Terraria gameplay with PTY console, .tmod mod manager, and world saves.
Expand Down
2 changes: 1 addition & 1 deletion tmodloader/specs.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Declared ports under `spec.ports`:
## 8. Key Invariants & Security

- **Wake-On-Traffic**: Declares `wakeProtocol: terraria` under `spec.ports[game]`.
- **Readiness Probe**: Uses TCP probe on port `7777`.
- **Readiness Probe**: The same `exec` probe as vanilla Terraria: it reads `/proc/net/tcp` for a socket listening on port `7777` (`0x1E61`) instead of connecting, because a `tcpSocket` probe's connect-and-close crashes the server (`ObjectDisposedException` in `Netplay.ServerLoop`).

---

Expand Down
7 changes: 5 additions & 2 deletions tmodloader/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@ spec:

probes:
readiness:
tcpSocket:
port: game
# Ready once the server LISTENs on 7777 (0x1E61 in /proc/net/tcp). Never
# tcpSocket: the kubelet's connect-and-close crashes the server
# (ObjectDisposedException in Netplay.ServerLoop) and crash-loops the pod.
exec:
command: ["sh", "-c", "grep -qsE ':1E61 [0-9A-F]+:[0-9A-F]{4} 0A' /proc/net/tcp /proc/net/tcp6"]
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 30
Expand Down
Loading