2026-04-17 18:00:02 -07:00
2026-04-17 18:00:02 -07:00
2026-04-17 18:00:02 -07:00
2026-04-17 18:00:02 -07:00
2026-04-17 18:00:02 -07:00
2026-04-17 18:00:02 -07:00
2026-04-17 18:00:02 -07:00
2026-04-17 18:00:02 -07:00
2026-04-17 18:00:02 -07:00

minecraft

YAML=$(ls | grep yaml | sort)
for y in $YAML; do oc apply -f $y; done

UPDATE 8/30/2023:

new ServiceAccount, ClusterRole and ClusterRoleBinding created, now it doesn't rely on having to manually add an scc to the SA post deployment. Much cleaner and easier to manage.

Then in order to restore the backup of the 'pirate ship' server, you need to do some trickery. You'll need to let the generic server come up, then you need copy the file 'minecraft.tar.gz' to the debug pod, erase the contents of /data, extract the tarball into /data, fix permissions and then bounce the pod.

oc get pod

NAME                         READY   STATUS    RESTARTS   AGE
minecraft-7cdb5fc967-mjchg   1/1     Running   0          2m39s

oc debug minecraft-7cdb5fc967-mjchg
# from within the debug pod
# rm -rfv /data/*

oc cp minecraft.tar.gz minecraft-7cdb5fc967-mjchg:/data/

# from within the debug pod
# tar xf minecraft.tar.gz
# chown -vR minecraft:minecraft /data
# chmod -vR 777 /data
# exit

oc delete pod minecraft-7cdb5fc967-mjchg
Description
No description provided
Readme 26 KiB