Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rgolangh/migration-cluster-day2


https://github.com/rgolangh/migration-cluster-day2

Last synced: 29 days ago
JSON representation

Awesome Lists containing this project

README

        

# migration-cluster-day-2

The Day-2 configuration of a cluster for migration is setup using an ArgoCD application.
See the installation instruction in charts/migration-cluster-day-2/README.md

This repo maintains 2 components:
- the ArgoCD helm application in charts/migration-cluster-day-2
- the mtv-init application

> [!Note]
> 2 things that must be set for the argo application to deploy properly:
> 1. an annotation on resources which need their CRD by prior waves. For example
> the LVMCluster have this:
> ```
> annotations:
> argocd.argoproj.io/sync-wave: "2"
> argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
> ```
>
> This makes sure the wave is after the operator is deployed so the CRD is there
> and that the CRD is okay to be missing in the dry run check
>
> 2. Every target namespace we create needs this label so ArgoCD will have permissions to create resources there:
> ```
> labels:
> argocd.argoproj.io/managed-by: openshift-gitops
> ```

# Architecture
> [!Note]
> Needs an update

```mermaid
architecture-beta

group srcDC[VSPhere]
group agent(cloud)[Agent VM] in srcDC
service agentd(server)[Agent] in agent

group amservice(cloud)[Assisted Migration Service]
service amserviced(server)[AMService] in amservice
service db1(database)[Database] in amservice

group targetcluster[Target Cluster]

group mta(server)[MTA] in targetcluster
service mtaAPI[migration CRD] in mta
```

```mermaid
architecture-beta

MA[mtv-init Service]
MA --> MB[HTTP API: /, /upload, /vmware, /vmware/done]

MB --> MC[vddk-task Job]
MC --> MD[Download vddk.tar.gz]
MC --> ME[Trigger vddk build config
to build image]

ME --> MF[vddk build config]

MC --> MG[Update MTV Operator Resource
with vddk Image URL]
MG --> MH[mtv-operator Resource]
```