Tenant replication - cniackz/public GitHub Wiki
To replicate a tenant.
- Have two tenants working, one tenant with obj the other with no data.
- Expose 9000 in both tenants using different alias:
$ k port-forward svc/minio -n myminio-2 9000:443
Forwarding from 127.0.0.1:9000 -> 9000
Forwarding from [::1]:9000 -> 9000
Handling connection for 9000
Handling connection for 9000
$ mc alias set myminio-2 https://localhost:9000 RJA5QEVSN251DPDT DY14GSET25OJ41MXWWBPA23OPMVUIY1Y --insecure
Added `myminio-2` successfully.
$ k port-forward svc/minio -n tenant-lite 9001:443
Forwarding from 127.0.0.1:9001 -> 9000
Forwarding from [::1]:9001 -> 9000
Handling connection for 9001
$ mc alias set myminio-1 https://localhost:9001 minio minio123 --insecure
Added `myminio-1` successfully.
- Replicate:
$ mc admin replicate add myminio-1 myminio-2 --insecure
mc: <ERROR> Unable to add sites for replication. Error received when contacting a peer site (unable to create admin client for myminio-1: Remote service endpoint https://localhost:9001 not available
remote target is offline for endpoint https://localhost:9001).
Couldn't replicate via CLI from external mc commands, replicated from the UI:
- Objects replicated: