MUDCraft: initContainer plugin pattern + PurpurExtras ConfigMap
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user