From 5ce8c4db9183c06c16ae55502029fbe3cdd6fe3c Mon Sep 17 00:00:00 2001 From: andrew Date: Sat, 13 Apr 2024 17:51:40 +0300 Subject: [PATCH] feature: set db kube service config --- .gitignore | 1 - kubeconf/postgres-service.yml | 19 +++++++++++++++++++ .../{secrets_template.yml => sercets.yml} | 4 ++-- 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 kubeconf/postgres-service.yml rename kubeconf/{secrets_template.yml => sercets.yml} (70%) diff --git a/.gitignore b/.gitignore index 2f62c7b..6f0482f 100644 --- a/.gitignore +++ b/.gitignore @@ -54,4 +54,3 @@ dmypy.json /pytest.ini /docker-compose.yml /keycloak/ -/kubeconf/secrets.yml diff --git a/kubeconf/postgres-service.yml b/kubeconf/postgres-service.yml new file mode 100644 index 0000000..fe841dc --- /dev/null +++ b/kubeconf/postgres-service.yml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Service +metadata: + name: postgres +spec: + ports: + - protocol: TCP + port: 5432 + targetPort: 5432 +--- +apiVersion: v1 +kind: Endpoints +metadata: + name: postgres +subsets: + - addresses: + - ip: 192.168.49.1 + ports: + - port: 5432 diff --git a/kubeconf/secrets_template.yml b/kubeconf/sercets.yml similarity index 70% rename from kubeconf/secrets_template.yml rename to kubeconf/sercets.yml index ebf56d5..f1ab3fe 100644 --- a/kubeconf/secrets_template.yml +++ b/kubeconf/sercets.yml @@ -8,7 +8,7 @@ stringData: db_name: "" db_username: "" db_password: "" - db_host: "" + db_host: "postgres.default.svc.cluster.local" db_port: "" auth0_client_id: "" - auth0_client_secret: "" + auth0_client_secret: "" \ No newline at end of file