# Dynamically create Postgres DB

**URL:** <https://forums.percona.com/t/dynamically-create-postgres-db/31124>\
**Category:** Percona Everest\
**Created:** [June 20, 2024, 4:09pm UTC](https://forums.percona.com/t/dynamically-create-postgres-db/31124 "2024-06-20T16:09:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SaasHQ](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/saashq/32/16970_2.png) [@SaasHQ](https://forums.percona.com/u/SaasHQ)\
**Post date:** [June 20, 2024, 4:09pm UTC](https://forums.percona.com/t/dynamically-create-postgres-db/31124/1 "2024-06-20T16:09:01Z")

</div>

Hi: Finally a private dbaas! My application needs to spin up a new postgres db every time I create a new project. I’d like to have Everest running in my K8s cloud. I was wondering what would be a simple approach to make that happen. I’m using golang as well. Are there APIs available that I could call? I haven’t dug deeply into Everest yet. Cheers, Dave (great project and idea!)

---

<div class="post-metadata">

**Author:** ![daniil.bazhenov](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/daniil.bazhenov/32/62_2.png) [@daniil.bazhenov](https://forums.percona.com/u/daniil.bazhenov)\
**Post date:** [June 24, 2024, 7:38am UTC](https://forums.percona.com/t/dynamically-create-postgres-db/31124/2 "2024-06-24T07:38:12Z")

</div>

I think you can use the API to do that

> **[SwaggerUI](https://docs.percona.com/everest-api-doc/)**
>
> SwaggerIU

Percona Everest Frontend UI uses APIs too, you can do reverse engineering and see in the browser dev tool what API requests are sent when creating the database and replicate them using API http requests from your Go script.

---

<div class="post-metadata">

**Author:** ![SaasHQ](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/saashq/32/16970_2.png) [@SaasHQ](https://forums.percona.com/u/SaasHQ)\
**Post date:** [June 24, 2024, 2:47pm UTC](https://forums.percona.com/t/dynamically-create-postgres-db/31124/3 "2024-06-24T14:47:58Z")

</div>

Thanks, that sounds like a great idea. I’ll give it a shot. btw: I forgot to ask. Are there any plans to add organizations/projects to the Everest web ui?

Here’s a crazy thought. We might try adding a 4th tab to the list of databases and spin up Supabase. There’s already Helm charts etc. created for Supa. That way we could manage multiple Supabase instances. Does that sound feasible?

Cheers,  
Dave

---

<div class="post-metadata">

**Author:** ![daniil.bazhenov](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/daniil.bazhenov/32/62_2.png) [@daniil.bazhenov](https://forums.percona.com/u/daniil.bazhenov)\
**Post date:** [June 25, 2024, 10:02am UTC](https://forums.percona.com/t/dynamically-create-postgres-db/31124/4 "2024-06-25T10:02:14Z")

</div>

You could try it, we had the thought of adding Valkey or FerretDB as an example to do the documentation.  
At the moment there is no documentation and you will have to learn the source code yourself.

---

<div class="post-metadata">

**Author:** ![SaasHQ](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/saashq/32/16970_2.png) [@SaasHQ](https://forums.percona.com/u/SaasHQ)\
**Post date:** [June 25, 2024, 3:01pm UTC](https://forums.percona.com/t/dynamically-create-postgres-db/31124/5 "2024-06-25T15:01:21Z")

</div>

That’s cool. Nice to know you were thinking of a similar idea as well. I think I’ll give it a shot. btw: Do you do custom work? Cheers, Dave

---

<div class="post-metadata">

**Author:** ![Hal\_Lesesne](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/hal_lesesne/32/12216_2.png) [@Hal\_Lesesne](https://forums.percona.com/u/Hal_Lesesne)\
**Post date:** [October 11, 2024, 6:59pm UTC](https://forums.percona.com/t/dynamically-create-postgres-db/31124/6 "2024-10-11T18:59:24Z")

</div>

Out of curiosity. I know that everest uses pecona operators underneath. Is there any documentation on how to deploy a new database declaratively?

The use case is using the new helm chart to argocd deploy everest and then provision an initial (and subsequent) databases using my git repo. I’d like to be able to manage the day 2 stuff for the database through the UI.

---

<div class="post-metadata">

**Author:** ![Sam\_Lin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sam_lin/32/20714_2.png) [@Sam\_Lin](https://forums.percona.com/u/Sam_Lin)\
**Post date:** [April 10, 2025, 2:04pm UTC](https://forums.percona.com/t/dynamically-create-postgres-db/31124/7 "2025-04-10T14:04:46Z")

</div>

I have the same question. I try to use ArgoCD to deploy mongodb with “Percona Operator for MongoDB”, however, Everest doesn’t pickup that database, is there a way to import the existing database? There are a lot of options not in the UI and it is not really comply with GitOps as well.

\*\* just found this issue

> <https://github.com/percona/everest/issues/546>
>
> It would be great, if everest could import existing cluster, created with percon…a's operators when installing in namespace.
