Open yaoyinnan opened 1 year ago
You should be able to create tenants using the HTTP control plane APIs and then you may access the database (see control_plane
). For local developments, we recommend using the cargo neon
utility instead of deploying everything by yourself.
@skyzh thanks for your help. I tried deploying with cargo neon
. But the main problem I want to solve now is: how to configure the network topology so that the PostgreSQL nodes deployed in K8s can interact with the storage layer nodes (safekeeper, pageserver, minio) of cargo neon
/ docker-compose
? Do I have to do service discovery manually? Is there any relevant case for my reference?
Is there any solution for neondata in kubernetes? Any helm chart any operator?
@skyzh Thank you so much. This work is amazing. At present, helm-charts does not seem to support the deployment of Safekeeper and Pageserver? Are there plans to support it in the future?
I don't think it's on the roadmap because we currently scale them manually.
Even scaling is manual but it will be helpful to install them via charts. Otherwise the instructions of manual + helm is going to be tough to understand.
Something in my mind is telling me I should start and create a chart myself. :^)
I have now deployed a Neon cluster using docker-compose, and the node information is as follows:
It contains the following nodes:
I can connect to PostgreSQL running in compute:
At the same time, I also run an autoscaling Kubernetes cluster started by kind, which contains a series of nodes. The function implemented in it is to run an elastically scalable postgres14-disk-test-cxkmw, which runs in a NeonVM, through the virtual The machine hot-swappable function realizes vertical elastic scaling, and realizes horizontal elastic scaling through virtual machine migration. But only postgresql nodes are running in this cluster, running in NeonVM.
How can I use the PostgreSQL node in Kubernetes as the computing node of the cluster, and use other storage layer nodes deployed by docker-compose as the storage node of the cluster?
Is there any relevant documentation that can help me?
Thanks~!