SaFi Bank Space : New Environment Setup - Tangled

General instructions to setup the new environment.

  1. Prepare proper subnets for all projects

    1. https://github.com/SafiBank/SaFiMono/blob/main/devops/docs/gcp_network_design.md

  2. Find the word brave in all files under DevOps folder

    1. Add new environment variables where ever applicable

  3. Run the one by one workspaces, better follow this order

    1. tf-dipatcher

    2. tf-environments (that particular environment , Ex: safi-env-tangled)

    3. tf-dns-safibankonline

    4. tf-env-vpn-infra

    5. tf-env-vpn-config

    6. tf-env-applications-infra

    7. tf-env-applications-config

    8. tf-env-hcvault-infra

    9. tf-env-hcvault-config

    10. tf-env-cloudflare-infra

    11. tf-env-cloudflare-config

    12. tf-env-tyka-infra

    13. tf-env-tyka-config

    14. tf-env-tms-infra

    15. tf-env-tms-config

    16. tf-env-data-infra

    17. tf-env-data-config

    18. tf-env-monitor-infra

    19. tf-env-monitor-config

    20. rest of the workspaces

  4. Confluent cloud kafka

  5. TMS Setup

  6. Ensure in the vault all values are available

    1. Particularly few values are needs to updated manually

    2. 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

  7. Prepare pipeline for all microservices

    1. https://github.com/SafiBank/SaFiMono/tree/main/.github/workflows

    2. Push the deployment for the new environment Note: initially it will fail since argocd not yet ready

    3. Another important note for stage and prd environment build step should be excluded

  8. Prepare ArgoCD manifests for common infra

    1. https://github.com/SafiBank/SaFiMono/tree/main/devops/argocd/environments/common/infra

  9. Prepare manifest for MS and others

    1. Example : https://github.com/SafiBank/SaFiMono/tree/main/devops/argocd/environments/tangled

    2. Do find and replacement brave with tangled

    3. Order should be monitoring, hcv, tyk, vpn, apps, confluent-kafka, tms

  10. Note: Don’t copy all folders, better copy one by one ensure it’s deployed in argocd