Tenant replication - cniackz/public GitHub Wiki

Objective:

To replicate a tenant.

Steps:

  1. Have two tenants working, one tenant with obj the other with no data.
Screenshot 2023-04-14 at 3 28 12 PM
  1. 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.
  1. 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:

Screenshot 2023-04-14 at 3 50 01 PM
  1. Objects replicated:
Screenshot 2023-04-14 at 3 51 19 PM
⚠️ **GitHub.com Fallback** ⚠️