Skip to content

Best option to sync local-path PVs within multi-node k3s cluster? #1550

Answered by pschiffe
pschiffe asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for the overview. This is what I ended up with for small 3 node cluster to distribute mariadb backups from one to all nodes. For bigger clusters I'll probably use rclone.

apiVersion: volsync.backube/v1alpha1
kind: ReplicationDestination
metadata:
  name: flux-mariadb-backup-2
spec:
  trigger:
    schedule: "0 3 * * *"
  rsyncTLS:
    copyMethod: Direct
    capacity: 1Gi
    accessModes:
      - ReadWriteOnce
    storageClassName: local-path-retain
    moverSecurityContext:
      runAsUser: 999
      runAsGroup: 999
      fsGroup: 999
    moverAffinity:
      nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
            - matchExpr…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pschiffe
Comment options

You must be logged in to vote
2 replies
@tesshuflower
Comment options

@pschiffe
Comment options

Comment options

You must be logged in to vote
2 replies
@tesshuflower
Comment options

@pschiffe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants