Below is a high-level deployment plan for the wordpress migration/swap steps, detailing the overall workflow and commands.
From the temporary MySQL pod in the Scaleway prod cluster (temp-ns-for-db-dump namespace):
KUBECONFIG=scaleway-kubeconfig-caats.yaml kubectl -n caats exec -it caats-wordpress-5d6467dfdd-68kqz -- sh
cd /tmp
mysqldump -h 192.168.0.17 -u caats-mysql-wordpress -p'2JdxXPiDJLmg!UzTkncc9o@QrpaR_Ys2W2o' wordpress | gzip > wordpress.sql.gz
From your local machine or AWS Console (using appropriate KUBECONFIG for Scaleway):
KUBECONFIG=scaleway-kubeconfig-caats.yaml kubectl -n caats cp caats-wordpress-5d6467dfdd-68kqz:/tmp/wordpress.sql.gz ./wordpress.sql.gz
Using the AWS cluster kubeconfig and the temporary MySQL pod (temp-debug-pod in caats ns):
kubectl -n temp-ns-for-db-restore cp wordpress.sql.gz mysql:/tmp/wordpress.sql.gz