mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Squashed commit of the following: (#17340)
commit9f1d0c5c3eAuthor: TheNotary <wastyx@gmail.com> Date: Mon Aug 19 17:28:36 2019 -0500 accounts for issue where kubectl exec seems to have a differing syntax from cp when working with namespaces commit959e8ea293Author: TheNotary <wastyx@gmail.com> Date: Sun Aug 18 07:19:16 2019 -0500 tests applying a patch level version bump commit8660595c08Author: TheNotary <wastyx@gmail.com> Date: Sat Aug 17 16:04:44 2019 -0500 applies tips from review commitef99124bccAuthor: TheNotary <wastyx@gmail.com> Date: Sat Aug 17 10:07:37 2019 -0500 adds server backup instructions Signed-off-by: Geoff Bourne <itzgeoff@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
bce9c0b3fd
commit
5830dd33e9
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: minecraft
|
||||
version: 1.1.3
|
||||
version: 1.1.4
|
||||
appVersion: 1.14.4
|
||||
home: https://minecraft.net/
|
||||
description: Minecraft server
|
||||
|
||||
@@ -63,3 +63,16 @@ By default a PersistentVolumeClaim is created and mounted for saves but not mods
|
||||
you can change the values.yaml to disable persistence under the sub-sections under `persistence`.
|
||||
|
||||
> *"An emptyDir volume is first created when a Pod is assigned to a Node, and exists as long as that Pod is running on that node. When a Pod is removed from a node for any reason, the data in the emptyDir is deleted forever."*
|
||||
|
||||
## Backups
|
||||
|
||||
You can backup the state of your minecraft server to your local machine via the `kubectl cp` command.
|
||||
|
||||
```
|
||||
NAMESPACE=default
|
||||
POD_ID=lionhope-387ff8d-sdis9
|
||||
kubectl exec --namespace ${NAMESPACE} ${POD_ID} rcon-cli save-off
|
||||
kubectl exec --namespace ${NAMESPACE} ${POD_ID} rcon-cli save-all
|
||||
kubectl cp ${NAMESPACE}/${POD_ID}:/data .
|
||||
kubectl exec --namespace ${NAMESPACE} ${POD_ID} rcon-cli save-on
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user