- 
                Notifications
    
You must be signed in to change notification settings  - Fork 4
 
feat(minecraft): backup public playground world #4432
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
          
     Merged
      
      
    
                
     Merged
            
            
          
      
        
          +103
        
        
          −3
        
        
          
        
      
    
  
Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    Loading status checks…
  
          
 | 
    
          🦙 MegaLinter status: ✅ SUCCESS
 See detailed report in MegaLinter reports MegaLinter is graciously provided by OX Security  | 
    
          
--- kubernetes/talos-flux/apps/gaming-public/minecraft-java/velocity-proxy Kustomization: flux-system/minecraft-public-velocity-proxy ConfigMap: gaming-public/minecraft-public-velocity-proxy-config
+++ kubernetes/talos-flux/apps/gaming-public/minecraft-java/velocity-proxy Kustomization: flux-system/minecraft-public-velocity-proxy ConfigMap: gaming-public/minecraft-public-velocity-proxy-config
@@ -67,13 +67,13 @@
     #                  mod information.
     # - "description": Uses the description and mod list from the backend server. The first
     #                  server in the try (or forced host) list that responds is used for the
     #                  description and mod list.
     # - "all":         Uses the backend server's response as the proxy response. The Velocity
     #                  configuration is used if no servers could be contacted.
-    ping-passthrough = "DISABLED"
+    ping-passthrough = "all"
 
     # If not enabled (default is true) player IP addresses will be replaced by <ip address withheld> in logs
     enable-player-address-logging = true
 
     [servers]
     # Configure your servers here. Each key represents the server's name, and the value
--- kubernetes/talos-flux/apps/gaming-public/minecraft-java/playground-world Kustomization: flux-system/minecraft-public-playground-world PersistentVolumeClaim: gaming-public/minecraft-public-playground-world-data
+++ kubernetes/talos-flux/apps/gaming-public/minecraft-java/playground-world Kustomization: flux-system/minecraft-public-playground-world PersistentVolumeClaim: gaming-public/minecraft-public-playground-world-data
@@ -8,11 +8,15 @@
     kustomize.toolkit.fluxcd.io/namespace: flux-system
   name: minecraft-public-playground-world-data
   namespace: gaming-public
 spec:
   accessModes:
   - ReadWriteOnce
+  dataSourceRef:
+    apiGroup: volsync.backube
+    kind: ReplicationDestination
+    name: minecraft-public-playground-world-data
   resources:
     requests:
       storage: 10Gi
   storageClassName: ceph-block
 
--- kubernetes/talos-flux/apps/gaming-public/minecraft-java/playground-world Kustomization: flux-system/minecraft-public-playground-world ReplicationDestination: gaming-public/minecraft-public-playground-world-data
+++ kubernetes/talos-flux/apps/gaming-public/minecraft-java/playground-world Kustomization: flux-system/minecraft-public-playground-world ReplicationDestination: gaming-public/minecraft-public-playground-world-data
@@ -0,0 +1,34 @@
+---
+apiVersion: volsync.backube/v1alpha1
+kind: ReplicationDestination
+metadata:
+  labels:
+    app.kubernetes.io/name: minecraft-public-playground-world
+    kustomize.toolkit.fluxcd.io/name: minecraft-public-playground-world
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+    kustomize.toolkit.fluxcd.io/ssa: IfNotPresent
+  name: minecraft-public-playground-world-data
+  namespace: gaming-public
+spec:
+  restic:
+    accessModes:
+    - ReadWriteOnce
+    cacheAccessModes:
+    - ReadWriteOnce
+    cacheCapacity: 1Gi
+    cacheStorageClassName: ceph-block
+    capacity: 2Gi
+    cleanupCachePVC: true
+    cleanupTempPVC: true
+    copyMethod: Snapshot
+    enableFileDeletion: true
+    moverSecurityContext:
+      fsGroup: 1000
+      runAsGroup: 1000
+      runAsUser: 1000
+    repository: vault-volsync
+    storageClassName: ceph-block
+    volumeSnapshotClassName: csi-ceph-blockpool
+  trigger:
+    manual: restore-once
+
--- kubernetes/talos-flux/apps/gaming-public/minecraft-java/playground-world Kustomization: flux-system/minecraft-public-playground-world ReplicationSource: gaming-public/minecraft-public-playground-world-data
+++ kubernetes/talos-flux/apps/gaming-public/minecraft-java/playground-world Kustomization: flux-system/minecraft-public-playground-world ReplicationSource: gaming-public/minecraft-public-playground-world-data
@@ -0,0 +1,36 @@
+---
+apiVersion: volsync.backube/v1alpha1
+kind: ReplicationSource
+metadata:
+  labels:
+    app.kubernetes.io/name: minecraft-public-playground-world
+    kustomize.toolkit.fluxcd.io/name: minecraft-public-playground-world
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: minecraft-public-playground-world-data
+  namespace: gaming-public
+spec:
+  restic:
+    accessModes:
+    - ReadWriteOnce
+    cacheAccessModes:
+    - ReadWriteOnce
+    cacheCapacity: 1Gi
+    cacheStorageClassName: ceph-block
+    copyMethod: Snapshot
+    moverSecurityContext:
+      fsGroup: 1000
+      runAsGroup: 1000
+      runAsUser: 1000
+    pruneIntervalDays: 14
+    repository: minecraft-public-playground-world-volsync
+    retain:
+      daily: 7
+      hourly: 24
+      monthly: 3
+      weekly: 4
+    storageClassName: ceph-block
+    volumeSnapshotClassName: csi-ceph-blockpool
+  sourcePVC: minecraft-public-playground-world-data
+  trigger:
+    schedule: 0 * * * *
+ | 
    
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    


No description provided.