MUDCraft: initContainer plugin pattern + PurpurExtras ConfigMap

This commit is contained in:
Will Anderson
2026-03-29 19:07:58 -05:00
parent c7ef04b37e
commit 70e69e1283
2 changed files with 131 additions and 0 deletions
@@ -18,6 +18,17 @@ spec:
app: mudcraft
spec:
terminationGracePeriodSeconds: 120
initContainers:
# Copies plugin JARs from the mudcraft/plugins image into the plugins PVC.
# To add/update plugins: update the Dockerfile in mudcraft/mudcraft repo,
# push to main — CI rebuilds the image and the next pod restart picks it up.
- name: install-plugins
image: registry.neuralplatform.ai/mudcraft/plugins:latest
imagePullPolicy: Always
command: ["sh", "-c", "cp -r /plugins/* /target/ && echo 'Plugins installed'"]
volumeMounts:
- name: plugins
mountPath: /target
containers:
- name: mudcraft
image: itzg/minecraft-server:java21
@@ -54,6 +65,9 @@ spec:
mountPath: /data/plugins
- name: logs
mountPath: /data/logs
- name: purpurextras-config
mountPath: /data/plugins/PurpurExtras/config.yml
subPath: config.yml
resources:
requests:
memory: 5Gi
@@ -87,3 +101,6 @@ spec:
- name: logs
persistentVolumeClaim:
claimName: mudcraft-logs
- name: purpurextras-config
configMap:
name: mudcraft-purpurextras