Skip to content

Commit 6ab9c3b

Browse files
committed
feat(minecraft): deploy gug server
Deploy GUG server.
1 parent ad540b7 commit 6ab9c3b

File tree

2 files changed

+117
-0
lines changed

2 files changed

+117
-0
lines changed
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: minecraft-gug
5+
finalizers:
6+
- resources-finalizer.argocd.argoproj.io
7+
spec:
8+
project: minecraft
9+
source:
10+
repoURL: https://itzg.github.io/minecraft-server-charts
11+
targetRevision: 5.0.0
12+
chart: minecraft
13+
helm:
14+
valuesObject:
15+
serviceAnnotations:
16+
mc-router.itzg.me/externalServerName: "gug.d3adb5.ca"
17+
workloadAsStatefulSet: true
18+
strategyType: RollingUpdate
19+
persistence:
20+
storageClass: longhorn
21+
dataDir:
22+
enabled: true
23+
Size: 20Gi
24+
resources:
25+
requests:
26+
cpu: 2
27+
memory: 16Gi
28+
limits:
29+
memory: 16Gi
30+
extraEnv:
31+
USE_MEOWICE_FLAGS: "true"
32+
minecraftServer:
33+
eula: true
34+
type: FORGE
35+
downloadModpackUrl: "http://0x0.st/H3s4.3.zip"
36+
version: "1.12.2"
37+
difficulty: normal
38+
whitelist: {{ join "," .Values.minecraft.server.gug.whitelist }}
39+
ops: {{ join "," .Values.minecraft.server.gug.ops }}
40+
maxPlayers: 16
41+
allowNether: true
42+
announcePlayerAchievements: true
43+
spawnProtection: 0
44+
viewDistance: 32
45+
motd: "Onnie and Beaver, sitting under a tree..."
46+
icon: "http://0x0.st/K_t4.png"
47+
rcon:
48+
enabled: true
49+
existingSecret: minecraft-gug-secrets
50+
secretKey: rcon-password
51+
memory: 12288M
52+
53+
mcbackup:
54+
enabled: true
55+
pruneBackupDays: 7
56+
persistence:
57+
storageClass: truenas-iscsi-hdd
58+
backupDir:
59+
enabled: true
60+
Size: 50Gi
61+
62+
affinity:
63+
podAntiAffinity:
64+
preferredDuringSchedulingIgnoredDuringExecution:
65+
- weight: 100
66+
podAffinityTerm:
67+
labelSelector:
68+
matchExpressions:
69+
- key: app.kubernetes.io/name
70+
operator: In
71+
values:
72+
- minecraft
73+
topologyKey: kubernetes.io/hostname
74+
75+
extraDeploy:
76+
- |
77+
apiVersion: bitnami.com/v1alpha1
78+
kind: SealedSecret
79+
metadata:
80+
name: minecraft-gug-secrets
81+
spec:
82+
encryptedData:
83+
{{- range $key, $value := .Values.minecraft.server.gug.secrets }}
84+
{{ $key }}: {{ splitList "\n" $value | join "" }}
85+
{{- end }}
86+
87+
destination:
88+
server: https://kubernetes.default.svc
89+
namespace: {{ .Values.minecraft.namespace }}
90+
91+
syncPolicy:
92+
automated:
93+
prune: true
94+
selfHeal: true
95+
syncOptions:
96+
- CreateNamespace=true

argo/app-of-apps/values.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,27 @@ democraticCsi:
180180
minecraft:
181181
namespace: minecraft
182182
server:
183+
gug:
184+
whitelist:
185+
- ab9c17
186+
- OnyxKier
187+
- Harkly_
188+
ops:
189+
- ab9c17
190+
- OnyxKier
191+
- Harkly_
192+
secrets:
193+
rcon-password: |-
194+
AgCCK32qYJqFWQk9UISQ/cGT40qZ40sEuIqPjmziuEBsZFggMpFWq9PMOPBMimP020GgHp3QnwjOhvPe
195+
YqH/3X0EFa1LKBIdm90lCADyMY66/eRe2pv4i+WpAT2daYMPVDWEdpg0+K+Qk/GAxKoz2f/6v9DDYOwF
196+
Z0nhO+J5ziwDuLGam4Qm1XC5hMEz0UoovRAwYGb921CoPgSxCUpWRmOSI8BryVgHcBf/5cQ8KDBD6O4M
197+
Wol2Try8TJxG2o0Mx7wWK3bGRAsZd/tmeVyGjWE6isGDqa9rxQH/ak96nxcxC7DJAOshbdsHt8NbtjMx
198+
S+JZianFd2dxauZR4Wo++1Z1FTsvOrBpTY+1y9og/Gt21B87FuRxKB/LKllHfPsbm6dlZyCbTLaDNjU5
199+
FXh2qChNCrXqqP1yCJ/S8874/MrHa/oLAk49oIMbMWDTxelZyHmT7q0jeNpMseiVs6uRb8GmueUIRfLV
200+
Ge6ihHLof2WnSFFrdUA+U2Gvc4xHWY7o83qF6PDCOSXHstV75nCpl8kxc3uMOt1lI7xehyhjhsNXoh7e
201+
eKI8F7V+IdCTUFG7Hb70gU5Lv9oU5+8FCyBsg/qonWlOFASsLdf0OPAu7i5PiYWwywBO0Sg66TES+BVY
202+
GrA0h45Gt/a4otKqYdcLJCjKrAJrAK0GsNWGnL0Tb0/SmdIRDTMI1rdaOz4CNcRQSoCrLEcDfcJ2/wj1
203+
Cndgub9uJjDpXw4SXNMemkIuxd6jL3QyWgo4NSV0Vy9Dy7w=
183204
pip:
184205
whitelist:
185206
- Yamz348

0 commit comments

Comments
 (0)