Skip to content

Commit 38420e1

Browse files
committed
feat(minecraft): deploy minecraft-pip server
Deploy a new Forge server called Minecraft pip.
1 parent 291870b commit 38420e1

File tree

2 files changed

+163
-0
lines changed

2 files changed

+163
-0
lines changed
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: minecraft-pip
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: 4.26.4
12+
chart: minecraft
13+
helm:
14+
valuesObject:
15+
serviceAnnotations:
16+
mc-router.itzg.me/externalServerName: "pip.picori.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: 10Gi
28+
limits:
29+
memory: 10Gi
30+
minecraftServer:
31+
eula: true
32+
type: FORGE
33+
version: "1.20.1"
34+
difficulty: normal
35+
whitelist: {{ join "," .Values.minecraft.server.pip.whitelist }}
36+
ops: {{ join "," .Values.minecraft.server.pip.ops }}
37+
maxPlayers: 10
38+
allowNether: true
39+
announcePlayerAchievements: true
40+
spawnProtection: 0
41+
viewDistance: 32
42+
motd: "Pip pip hooray!"
43+
icon: "http://0x0.st/KoOI.png"
44+
rcon:
45+
enabled: true
46+
existingSecret: minecraft-pip-secrets
47+
secretKey: rcon-password
48+
memory: 9216M
49+
50+
extraPorts:
51+
- name: voice-chat
52+
containerPort: 24452
53+
protocol: UDP
54+
service:
55+
enabled: true
56+
embedded: false
57+
annotations:
58+
metallb.universe.tf/allow-shared-ip: {{ .Values.metallb.ipSharingKey }}
59+
type: LoadBalancer
60+
port: 24452
61+
62+
mcbackup:
63+
enabled: true
64+
pruneBackupDays: 7
65+
persistence:
66+
storageClass: truenas-iscsi-hdd
67+
backupDir:
68+
enabled: true
69+
Size: 50Gi
70+
71+
affinity:
72+
podAntiAffinity:
73+
preferredDuringSchedulingIgnoredDuringExecution:
74+
- weight: 100
75+
podAffinityTerm:
76+
labelSelector:
77+
matchExpressions:
78+
- key: app.kubernetes.io/name
79+
operator: In
80+
values:
81+
- minecraft
82+
topologyKey: kubernetes.io/hostname
83+
84+
extraVolumes:
85+
- volumes:
86+
- name: voice-chat-config
87+
configMap:
88+
name: minecraft-pip-voice-chat-config
89+
volumeMounts:
90+
- name: voice-chat-config
91+
mountPath: /data/config/voicechat/voicechat-server.properties
92+
subPath: voicechart-server.properties
93+
94+
extraDeploy:
95+
- |
96+
apiVersion: bitnami.com/v1alpha1
97+
kind: SealedSecret
98+
metadata:
99+
name: minecraft-pip-secrets
100+
spec:
101+
encryptedData:
102+
{{- range $key, $value := .Values.minecraft.server.pip.secrets }}
103+
{{ $key }}: {{ splitList "\n" $value | join "" }}
104+
{{- end }}
105+
- |
106+
apiVersion: v1
107+
kind: ConfigMap
108+
metadata:
109+
name: minecraft-pip-voice-chat-config
110+
data:
111+
voicechart-server.properties: |
112+
port=24452
113+
bind_address=
114+
max_voice_distance=48.0
115+
crouch_distance_multiplier=1.0
116+
whisper_distance_multiplier=0.5
117+
codec=VOIP
118+
mtu_size=1024
119+
keep_alive=1000
120+
enable_groups=true
121+
voice_host=mc.picori.ca
122+
allow_recording=true
123+
spectator_interaction=false
124+
spectator_player_possession=false
125+
force_voice_chat=false
126+
login_timeout=10000
127+
broadcast_range=-1.0
128+
allow_pings=true
129+
use_natives=true
130+
131+
destination:
132+
server: https://kubernetes.default.svc
133+
namespace: {{ .Values.minecraft.namespace }}
134+
135+
syncPolicy:
136+
automated:
137+
prune: true
138+
selfHeal: true
139+
syncOptions:
140+
- CreateNamespace=true

argo/app-of-apps/values.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,29 @@ democraticCsi:
167167
minecraft:
168168
namespace: minecraft
169169
server:
170+
pip:
171+
whitelist:
172+
- Yamz348
173+
- mysterybagel
174+
- PhlatD
175+
- xinsomnias
176+
- ab9c17
177+
ops:
178+
- ab9c17
179+
- xinsomnias
180+
- Yamz348
181+
secrets:
182+
rcon-password: |-
183+
AgA8LdNV3nOgFyzmZphkgSLcbD8L3LaSNyj9Z7YJy2N+UE9sk2K1WU8egeP2h5WR5jgBvMAyUWxZRzxF
184+
ZK/GkDtaslqq2vvQ48yghtq+5vvuY+i/s4HX74mDCAYsm+UpXXml1MAnHkrCBCggvBxe4hKvwT6bWo6a
185+
tfUEU0YrFJnj6T7xzd97pU6D+27vygI0mS1PUqUqZzU3Ogyblo5GjLR15luiMjM4gHiEoJCU+ZVsICU5
186+
CZfiDc78mbQGe3A3nhY3usRFBet0uVJdKuLov24w3QpuV7Vh9krvs529LQrj23AQTQfQUKBE6dr0yZ4r
187+
iLZ2KvmN6lbmf55fJ1NtoHfmxpL6F2le4AFr+qAWTN0jhFtgtoi2DvAmc3ztHxq59Est6CLUvIN0kBwl
188+
XH/VjlzLuyNFr+WPjvO3gsG+8dR2Jeir5JbjwHPdiUjjf4C9CcGdcA9g4EcofLv5/4Uh7Sg3Vs5wJIBD
189+
9oGIN4tlpUfAN3rHimnG9PYsWelvwokSQywThfgodGIhOV+RfQdgFV2jBgc9Zd4VE5fYaJTjCDwKaMLY
190+
6MF6ZuoEHUCittNu0/M6Sbq3Ix58mLDb8MNWs3MOtj3dlr7HGIRO3iM2kn/V9a9UmdqY7RY72BooSdQI
191+
O94wsNnYsIcoarfOedUPD4zq/bN5Ecf+hdy+BV62/Dm1hbKGBz/20RCT+eTXZ/1lok372I6n7AryNVur
192+
t1dJmjwb22330oseKTmqlhpxj0reL5nbwBpBRfcGhmLirXY=
170193
deepsea:
171194
whitelist:
172195
- ab9c17

0 commit comments

Comments
 (0)