Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(minecraft): add backups to survival world #4480

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

tyriis
Copy link
Owner

@tyriis tyriis commented Feb 5, 2025

No description provided.

Copy link

sonarqubecloud bot commented Feb 5, 2025

@tyriis-automation
Copy link
Contributor

--- kubernetes/talos-flux/apps/gaming/minecraft-java/survival-world Kustomization: flux-system/minecraft-survival-world ReplicationDestination: gaming/minecraft-survival-world-data

+++ kubernetes/talos-flux/apps/gaming/minecraft-java/survival-world Kustomization: flux-system/minecraft-survival-world ReplicationDestination: gaming/minecraft-survival-world-data

@@ -0,0 +1,35 @@

+---
+apiVersion: volsync.backube/v1alpha1
+kind: ReplicationDestination
+metadata:
+  labels:
+    app.kubernetes.io/instance: minecraft-survival-world
+    app.kubernetes.io/name: minecraft-survival-world
+    kustomize.toolkit.fluxcd.io/name: minecraft-survival-world
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+    kustomize.toolkit.fluxcd.io/ssa: IfNotPresent
+  name: minecraft-survival-world-data
+  namespace: gaming
+spec:
+  restic:
+    accessModes:
+    - ReadWriteOnce
+    cacheAccessModes:
+    - ReadWriteOnce
+    cacheCapacity: 5Gi
+    cacheStorageClassName: ceph-block
+    capacity: 10Gi
+    cleanupCachePVC: true
+    cleanupTempPVC: true
+    copyMethod: Snapshot
+    enableFileDeletion: true
+    moverSecurityContext:
+      fsGroup: 1000
+      runAsGroup: 1000
+      runAsUser: 1000
+    repository: minecraft-survival-world-data-volsync
+    storageClassName: ceph-block
+    volumeSnapshotClassName: csi-ceph-blockpool
+  trigger:
+    manual: restore-once
+
--- kubernetes/talos-flux/apps/gaming/minecraft-java/survival-world Kustomization: flux-system/minecraft-survival-world ReplicationSource: gaming/minecraft-survival-world-data

+++ kubernetes/talos-flux/apps/gaming/minecraft-java/survival-world Kustomization: flux-system/minecraft-survival-world ReplicationSource: gaming/minecraft-survival-world-data

@@ -0,0 +1,37 @@

+---
+apiVersion: volsync.backube/v1alpha1
+kind: ReplicationSource
+metadata:
+  labels:
+    app.kubernetes.io/instance: minecraft-survival-world
+    app.kubernetes.io/name: minecraft-survival-world
+    kustomize.toolkit.fluxcd.io/name: minecraft-survival-world
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: minecraft-survival-world-data
+  namespace: gaming
+spec:
+  restic:
+    accessModes:
+    - ReadWriteOnce
+    cacheAccessModes:
+    - ReadWriteOnce
+    cacheCapacity: 5Gi
+    cacheStorageClassName: ceph-block
+    copyMethod: Snapshot
+    moverSecurityContext:
+      fsGroup: 1000
+      runAsGroup: 1000
+      runAsUser: 1000
+    pruneIntervalDays: 14
+    repository: minecraft-survival-world-data-volsync
+    retain:
+      daily: 7
+      hourly: 24
+      monthly: 3
+      weekly: 4
+    storageClassName: ceph-block
+    volumeSnapshotClassName: csi-ceph-blockpool
+  sourcePVC: minecraft-survival-world-data
+  trigger:
+    schedule: 5 * * * *
+

@tyriis tyriis merged commit 0bb5f19 into main Feb 5, 2025
16 checks passed
@tyriis tyriis deleted the feature/minecraft-migrate-paper branch February 5, 2025 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant