Replies: 5 comments 2 replies
-
@sentaycan That is, you'll need to create a replicationdestination on the old source (new destination) cluster, and your new PVC on the destination (that you now want to be the source) should be the sourcePVC for a new replicationsource. |
Beta Was this translation helpful? Give feedback.
-
One note - on the new destination cluster, since it contains the old Source PVC, you can use this as your destinationPVC in your replicationdestination if you wish - this means the initial sync back from new source to new destination should be quicker as the destination PVC already contains a lot of the data. |
Beta Was this translation helpful? Give feedback.
-
Thank you, but I want to connect the PVC in DestinationCluster to my application, how can I do this, I couldn't do it :( |
Beta Was this translation helpful? Give feedback.
-
And my question was actually this. |
Beta Was this translation helpful? Give feedback.
-
@sentaycan I've converted this to a discussion as I don't think there's a specific code issue we're talking about here, just recommendations on usage. When it comes to using your PVC at the destination side with your application, you will need to first create a PVC from the volumesnapshot that was created by your replicationdestination. Have you done this step already? If so, you will just need to make sure you startup your app and that it uses the PVC (for example if it's a deployment that mounts the PVC, make sure the pvc is named correctly and in the correct namespace). |
Beta Was this translation helpful? Give feedback.
-
Hello, I am copying my PVC to a cluster in a different region as below, but now I want to delete my source cluster and use my destination cluster as source cluster, what is the most optimal way to do this?
kubectl --context west2 -n mysql create -f - <<EOF apiVersion: volsync.backube/v1alpha1 kind: ReplicationDestination metadata: name: mysql spec: rsyncTLS: copyMethod: Snapshot capacity: 8Gi accessModes: ["ReadWriteOnce"] storageClassName: gp3-csi volumeSnapshotClassName: csi-aws-vsc keySecret: east-west serviceType: LoadBalancer EOF
kubectl --context east2 -n mysql create -f - <<EOF apiVersion: volsync.backube/v1alpha1 kind: ReplicationSource metadata: name: mysql spec: sourcePVC: data-mysql-0 trigger: schedule: "*/5 * * * *" rsyncTLS: keySecret: east-west address: abad73aa2ca4441ed8c9e13f1095c453-95258c1d3ff95327.elb.us-west-2.amazonaws.com copyMethod: Snapshot volumeSnapshotClassName: csi-aws-vsc EOF
Beta Was this translation helpful? Give feedback.
All reactions