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: 2 additions & 0 deletions cluster/k3d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ ports:
nodeFilters: [server:0]
- port: 443:443 # HTTPS ingress - accessible via localhost:443
nodeFilters: [server:0]
- port: 25566:25565 # Velocity/Minecraft (Traefik TCP entrypoint) - accessible via localhost:25566
nodeFilters: [server:0]

# Integrated registry for local image development
registries:
Expand Down
53 changes: 53 additions & 0 deletions manifests/velocity-external-access.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
# Adds a dedicated TCP entrypoint (25565) to Traefik so we can route Minecraft/Velocity traffic.
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: traefik
namespace: kube-system
spec:
valuesContent: |-
ports:
minecraft:
port: 25565
exposedPort: 25565
protocol: TCP
expose:
default: true

---
apiVersion: v1
kind: Service
metadata:
name: velocity
namespace: games
labels:
app: velocity
spec:
type: ClusterIP
sessionAffinity: ClientIP
ports:
- name: velocity
port: 25565
targetPort: 25565
protocol: TCP
selector:
grounds/server-type: velocity
agones.dev/role: gameserver

---
apiVersion: traefik.io/v1alpha1
kind: IngressRouteTCP
metadata:
name: velocity
namespace: games
labels:
app: velocity
spec:
entryPoints:
- minecraft
routes:
- match: HostSNI(`*`)
services:
- name: velocity
port: 25565