feat(homelab): add minecraft-main

This commit is contained in:
2025-12-24 13:42:59 -08:00
parent b77e496b31
commit e1d4b3fa65
5 changed files with 53 additions and 1 deletions

View File

@@ -3,6 +3,8 @@ repositories:
url: https://metallb.github.io/metallb url: https://metallb.github.io/metallb
- name: jellyfin - name: jellyfin
url: https://jellyfin.github.io/jellyfin-helm url: https://jellyfin.github.io/jellyfin-helm
- name: minecraft-charts
url: https://itzg.github.io/minecraft-server-charts
releases: releases:
# Load Balancer # Load Balancer
@@ -27,3 +29,11 @@ releases:
version: 2.7.0 version: 2.7.0
values: values:
- values/jellyfin.yaml - values/jellyfin.yaml
# Minecraft
- name: minecraft-main
namespace: minecraft
chart: minecraft-charts/minecraft
version: 5.0.0
values:
- values/minecraft/main.yaml

View File

@@ -0,0 +1,17 @@
resources:
limits:
memory: 1Gi
cpu: 2500m
minecraftServer:
eula: "TRUE"
type: "PAPER"
version: "1.21.11"
difficulty: hard
motd: "A Minecraft Server."
memory: 512M
persistence:
dataDir:
enabled: true
size: 2Gi

View File

@@ -6,3 +6,4 @@ resources:
- ./traefik/config.yaml - ./traefik/config.yaml
- ./cert-manager/config.yaml - ./cert-manager/config.yaml
- ./routes/media.yaml - ./routes/media.yaml
- ./routes/minecraft/main.yaml

View File

@@ -0,0 +1,13 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRouteTCP
metadata:
name: minecraft-main
namespace: minecraft
spec:
entryPoints:
- minecraft-main
routes:
- match: HostSNI(`*`)
services:
- name: minecraft-main
port: 25565

View File

@@ -17,13 +17,18 @@ spec:
websecure: websecure:
port: 443 port: 443
nodePort: 30001 nodePort: 30001
ssh: ssh:
port: 22 port: 22
expose: expose:
default: true default: true
exposedPort: 22 exposedPort: 22
protocol: TCP protocol: TCP
minecraft-main:
port: 25565
expose:
default: true
exposedPort: 25565
protocol: TCP
persistence: persistence:
enabled: true enabled: true
@@ -64,6 +69,12 @@ spec:
- kind: Secret - kind: Secret
name: wildcard-lucalise.ca-tls name: wildcard-lucalise.ca-tls
group: "" group: ""
minecraft-main:
port: 25565
protocol: TCP
namespacePolicy:
from: All
logs: logs:
general: general:
level: INFO level: INFO