General instructions to setup the new environment.
Prepare proper subnets for all projects
Find the word brave in all files under DevOps folder
Add new environment variables where ever applicable
Run the one by one workspaces, better follow this order
tf-dipatcher
tf-environments (that particular environment , Ex: safi-env-tangled)
tf-dns-safibankonline
tf-env-vpn-infra
tf-env-vpn-config
tf-env-applications-infra
tf-env-applications-config
tf-env-hcvault-infra
tf-env-hcvault-config
tf-env-cloudflare-infra
tf-env-cloudflare-config
tf-env-tyka-infra
tf-env-tyka-config
tf-env-tms-infra
tf-env-tms-config
tf-env-data-infra
tf-env-data-config
tf-env-monitor-infra
tf-env-monitor-config
rest of the workspaces
Confluent cloud kafka
TMS Setup
Ensure in the vault all values are available
Particularly few values are needs to updated manually
Search manual word under https://github.com/SafiBank/SaFiMono/tree/main/devops/argocd/environments/brave and take a note accordingly update the new environment values in vault
Prepare pipeline for all microservices
https://github.com/SafiBank/SaFiMono/tree/main/.github/workflows
Push the deployment for the new environment Note: initially it will fail since argocd not yet ready
Another important note for stage and prd environment build step should be excluded
Prepare ArgoCD manifests for common infra
Prepare manifest for MS and others
Example : https://github.com/SafiBank/SaFiMono/tree/main/devops/argocd/environments/tangled
Do find and replacement brave with tangled
Order should be monitoring, hcv, tyk, vpn, apps, confluent-kafka, tms
Note: Don’t copy all folders, better copy one by one ensure it’s deployed in argocd