Skip to content

Commit

Permalink
[terraria] updated documentation and base fleet resource
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberdev committed Apr 5, 2024
1 parent b628017 commit b55f54d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 24 deletions.
18 changes: 4 additions & 14 deletions servers/terraria/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<a href="https://hub.docker.com/r/grubertech/terraria"><img src="https://img.shields.io/docker/v/grubertech/terraria?arch=amd64&label=latest%20version&sort=date&style=flat-square" alt="Latest Version" style="max-width:100%;"></a> &nbsp;
<a href="https://hub.docker.com/r/grubertech/terraria"><img src="https://img.shields.io/docker/image-size/grubertech/terraria?label=image%20size&sort=date&style=flat-square" alt="Image Size" style="max-width:100%;"></a> &nbsp;
<a href="https://hub.docker.com/r/grubertech/terraria"><img src="https://img.shields.io/docker/pulls/grubertech/terraria.svg?style=flat-square" alt="Docker Pulls" style="max-width:100%;"></a> &nbsp;
<a href="https://github.com/gruberdev/gaming/pkgs/container/terraria"><img src="https://img.shields.io/github/actions/workflow/status/gruberdev/gaming/terraria.yml?label=image%20build&logo=docker&style=flat-square" alt="CI Badge" style="max-width:100%;"></a>
<a href="https://github.com/gruberdev/gaming/pkgs/container/terraria">
</p>

> Dig, fight, explore, build! Nothing is impossible in this action-packed adventure game.
Expand All @@ -17,30 +17,20 @@
>
> #### Pull the container Image from the mirrors below:
> &nbsp;
> [Dockerhub][dockerhub-uri] &nbsp; | &nbsp; [Github Container Registry][pull-link]
>
> [Dockerhub][dockerhub-uri] &nbsp;

#### Getting started

- To deploy a sample gameserver individually
```bash
task terraria:deploy:gs
# Or if you prefer to use kubectl directly
kubectl apply -k github.com/gruberdev/gaming/servers/terraria/deploy/gs
```

- To deploy a fleet of Terraria servers (with auto-scaling)
```bash
task terraria:deploy:fleet
# Or if you prefer to use kubectl directly
kubectl apply -k github.com/gruberdev/gaming/servers/terraria/deploy/fleet
```

- How to request help about CLI commands regarding this game:
- To deploy a fleet of Terraria servers <sub>(with auto-scaling)</sub>

```bash
task terraria:help
kubectl apply -k github.com/gruberdev/gaming/servers/terraria/deploy/fleet
```

<br>
Expand Down
16 changes: 6 additions & 10 deletions servers/terraria/deploy/fleet/fleet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ spec:
replicas: 1
scheduling: Packed
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: Recreate
template:
metadata:
labels:
Expand All @@ -21,14 +18,13 @@ spec:
eviction:
safe: Always
ports:
- name: default
- name: gate
portPolicy: Dynamic
container: terraria-vanilla-fleet
containerPort: 7777
protocol: TCP
health:
disabled: false
initialDelaySeconds: 200
initialDelaySeconds: 160
periodSeconds: 5
failureThreshold: 3
sdkServer:
Expand All @@ -44,7 +40,7 @@ spec:
spec:
containers:
- name: terraria-vanilla-fleet
image: docker.io/grubertech/terraria:v1.4.4.9
image: docker.io/grubertech/terraria:1.4.4.9
imagePullPolicy: Always
envFrom:
- configMapRef:
Expand All @@ -58,8 +54,8 @@ spec:
cpu: 250m
memory: 512Mi
limits:
cpu: 2000m
memory: 2Gi
cpu: 1000m
memory: 1280Mi
volumeMounts:
- name: config-volume
mountPath: /server/Linux/serverconfig.txt
Expand Down

0 comments on commit b55f54d

Please sign in to comment.