| Typically, you would have a set of "helm charts" (packages) for your application(s).
So deploying, without data, would be something like a sequence of "helm install app-appId --values /path/to/config/for/environment.yaml" At this stage, you have no data. Normally, if you app depends on data, the pods will keep failing until data has been moved and is available (at which point they stabilize in an equilibrium state). If you run Ceph in both environments, then you may want to use Ceph replication. If you use another storage layer, then it's also up to you to make sure the data is moved around. rook should have support for that use case. However, it is still alpha as per the GitHub readme, so use at your own risk.
However, you may want to consider the data replication problem outside of the scope of k8s. If the 2 sets of clusters are physically close to each other, you may want to just point the new apps to the old data and pull the switch from the first one. Another option would be to run another beta feature in K8s called Federation, which allows to manage several cluster via a single control plane. Sorry for the long comment, your question has a broad scope, and it's hard to answer without diving into details. |