-
Notifications
You must be signed in to change notification settings - Fork 86
/
minecraft-bedrock.yaml
93 lines (93 loc) · 2.09 KB
/
minecraft-bedrock.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: mcbr
namespace: default
spec:
suspend: true
interval: 5m
chart:
spec:
chart: minecraft-bedrock
version: 2.8.2
sourceRef:
kind: HelmRepository
name: minecraft-server-charts
namespace: flux-system
interval: 5m
values:
persistence:
storageClass: "rook-ceph-block"
dataDir:
enabled: true
Size: 10Gi
podSecurityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
fsGroup: 1000
resources:
requests:
memory: 250Mi
cpu: 100m
limits:
memory: 250Mi
minecraftServer:
eula: "TRUE"
version: "LATEST"
difficulty: normal
gameMode: survival
ops: "2535432067443552"
levelName: world
serverName: "\u00a79Lovely \u00a7c\u00a7lSMP\u00a7c\u00a7l\u00a7k!"
cheats: true
serviceType: LoadBalancer
loadBalancerIP: 10.0.6.103
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: mcbr-restic
namespace: default
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: mcbr-restic-secret
creationPolicy: Owner
template:
engineVersion: v2
data:
RESTIC_REPOSITORY: '{{ .REPOSITORY_TEMPLATE }}/mcbr'
RESTIC_PASSWORD: '{{ .RESTIC_PASSWORD }}'
AWS_ACCESS_KEY_ID: '{{ .MINIO_ACCESS_KEY }}'
AWS_SECRET_ACCESS_KEY: '{{ .MINIO_SECRET_KEY }}'
dataFrom:
- extract:
key: minio
---
apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: mcbr
namespace: default
spec:
sourcePVC: mcbr-minecraft-bedrock-datadir
trigger:
schedule: "10 4 * * *"
restic:
copyMethod: Snapshot
pruneIntervalDays: 10
repository: mcbr-restic-secret
cacheCapacity: 10Gi
volumeSnapshotClassName: csi-rbdplugin-snapclass
storageClassName: rook-ceph-block
moverSecurityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
retain:
daily: 10
within: 3d