Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEVOPS] Setup charts on DO configured for flash, and document steps to reproduce the configuration #4

Closed
islandbitcoin opened this issue Oct 8, 2023 · 7 comments
Assignees
Labels
documentation Improvements or additions to documentation important Should be prioritized

Comments

@islandbitcoin
Copy link

islandbitcoin commented Oct 8, 2023

I have successfully run the entire galoy stack on regtest using the charts repo., running k3d on my own hardware.

I have not been able to run it successfully on mainnet and I have not been able to set it up successfully on GCP, so this task is to set up a full k8s cluster with all pods running and healthy on GCP instance along with comprehensive documentation on how to replicate the setup.

PR should include detailed documentation on how the GCP setup was done, including all settings that need to be changed for a mainnet instance. I should be able to access the following with all authentication working:

  • GraphQL API running on api.staging.flashapp.me
  • WebSocket running on ws.staging.flashapp.me
  • PoSURL (Flash Pay) running on pay.staging.flashapp.me
  • Admin running on admin.staging.flashapp.me

Finally, A DevOps resource should be able to use the documentation to replicate the steps in order to completely set up a production environment for Flash.

@islandbitcoin islandbitcoin changed the title [DEVOPS] Install galoy-infra on GCP configured for flash, and document steps to reproduce the configuration [DEVOPS] Install galoy-infra and charts on GCP configured for flash, and document steps to reproduce the configuration Jan 5, 2024
@islandbitcoin islandbitcoin added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Jan 31, 2024
@islandbitcoin
Copy link
Author

Might try this on DigitalOcean again....

@islandbitcoin islandbitcoin changed the title [DEVOPS] Install galoy-infra and charts on GCP configured for flash, and document steps to reproduce the configuration [DEVOPS] Install galoy-infra and charts on DO configured for flash, and document steps to reproduce the configuration Mar 12, 2024
@islandbitcoin islandbitcoin changed the title [DEVOPS] Install galoy-infra and charts on DO configured for flash, and document steps to reproduce the configuration [DEVOPS] Setup charts on DO configured for flash, and document steps to reproduce the configuration Mar 12, 2024
@islandbitcoin islandbitcoin removed the help wanted Extra attention is needed label Mar 12, 2024
@islandbitcoin
Copy link
Author

islandbitcoin commented Mar 12, 2024

Currently modified by @brh28 and working on DigitalOcean. leaving this open so we complete the remaining tasks:

  • flash-pay server config: Flash-pay: Update charts for staging env #13
  • admin-panel
  • Enable persistent storage for staging and production (mongo, kratos & price-history)
  • Convert all default passwords to K8s secrets
  • Automate and schedule backups
  • Enable and track Metrics

@brh28
Copy link
Collaborator

brh28 commented Mar 27, 2024

Kratos persistence: #16

@islandbitcoin
Copy link
Author

  • Redeployed Staging, lost all user data :-(
  • Enabling Logging and Telemetry

@brh28
Copy link
Collaborator

brh28 commented Apr 11, 2024

Enable and track Metric

@brh28
Copy link
Collaborator

brh28 commented May 13, 2024

Some updates.

  • Removed the prometheus & grafana instances to free PVs on our single node. We weren't using them anyway because we don't have BTC/LN infrastructure that requires monitoring (main Galoy use case) and we can use Digital Ocean tooling to monitor resource utilization. Marking these tasks as complete for now as there isn't work to be done at the moment. We can reintroduce with a new issue if there's specific functionality we need.
  • Admin-panel. Able to run the admin-panel and authenticate using Galoy's edge image, but getting a 401 from the graphql admin api both when running locally and in staging. Seem's there's a Kratos token the api is expecting, but not being passed by the admin-panel. This likely requires a deeper dive into the internals of the admin-panel to figure out. Leaving as an open issue to be returned to

@brh28
Copy link
Collaborator

brh28 commented Jul 3, 2024

I'm closing this task as the scope is quite large and not well-defined. Consequently, it hasn't been maintained. I've moved some of the unchecked tasks into Issues of their own:

@brh28 brh28 closed this as completed Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation important Should be prioritized
Projects
None yet
Development

No branches or pull requests

2 participants