diff options
| author | exatombe <jeremy27.clara22@gmail.com> | 2025-10-30 00:16:17 +0100 |
|---|---|---|
| committer | exatombe <jeremy27.clara22@gmail.com> | 2025-10-30 00:16:17 +0100 |
| commit | 0068551700163729c1c42b4435b51064e28461a2 (patch) | |
| tree | c1b3407d052642a97285154797976433b157aa22 /config.toml | |
| parent | 7604e249e332a872ae2e19f9826b56e3bd9313aa (diff) | |
feat: Implement orchestrator for PostgreSQL management via Docker and Kubernetes
- Added configuration options for orchestrator in config.go, including Docker and Kubernetes settings.
- Created orchestrator package to manage PostgreSQL instances, supporting automatic container creation, conflict resolution, and resource limits.
- Implemented Docker orchestrator with methods for creating, deleting, and retrieving database information.
- Added Kubernetes orchestrator skeleton with TODOs for future implementation.
- Developed comprehensive README documentation for orchestrator usage and configuration.
- Created test script for orchestrator API to validate functionality and ensure reliability.
Diffstat (limited to 'config.toml')
| -rw-r--r-- | config.toml | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/config.toml b/config.toml index fae791d..81564fe 100644 --- a/config.toml +++ b/config.toml @@ -12,9 +12,22 @@ api_domain = "example.com" manager = "sqlite" uri = "./database/internal.db" -[external_db] -manager = "postgres" -uri = "postgres://root:password@localhost:5432/" +[orchestrator] +# Type d'orchestrateur: "docker" ou "kubernetes" +type = "docker" + +# Configuration Docker/Podman +docker_host = "unix:///mnt/wsl/podman-sockets/podman-machine-default/podman-root.sock" +# Autres exemples: +# Docker standard: "unix:///var/run/docker.sock" +# Podman rootless: "unix:///run/user/1000/podman/podman.sock" +# Podman root: "unix:///run/podman/podman.sock" +# Hôte distant: "tcp://remote-host:2375" + +# Configuration Kubernetes (si type = "kubernetes") +# kube_api = "https://kubernetes.default.svc" +# kube_token = "your-kubernetes-api-token" +# namespace = "sovrabase-databases" [cluster] node_id = "node-01" |
