Skip to content

Commit

Permalink
feature: set db kube service config
Browse files Browse the repository at this point in the history
  • Loading branch information
andiserg committed Apr 13, 2024
1 parent 49417da commit 5ce8c4d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,3 @@ dmypy.json
/pytest.ini
/docker-compose.yml
/keycloak/
/kubeconf/secrets.yml
19 changes: 19 additions & 0 deletions kubeconf/postgres-service.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions kubeconf/secrets_template.yml → kubeconf/sercets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""

0 comments on commit 5ce8c4d

Please sign in to comment.