aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/databases/postgresql/service.yaml
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-04-27 00:39:55 +0100
committerGravatar Joe Banks <[email protected]>2024-04-27 16:15:07 +0100
commit8c40e0d0f46a641bdce723642f31ac1cfb6c26b4 (patch)
treed43ad4d5a739c19e5a1de0eae64841fc729e60b3 /kubernetes/namespaces/databases/postgresql/service.yaml
parentUpdate pixels redis secret (diff)
Upgrade to PostgreSQL 16 and move to databases namespace
Diffstat (limited to 'kubernetes/namespaces/databases/postgresql/service.yaml')
-rw-r--r--kubernetes/namespaces/databases/postgresql/service.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/kubernetes/namespaces/databases/postgresql/service.yaml b/kubernetes/namespaces/databases/postgresql/service.yaml
new file mode 100644
index 0000000..6a2b520
--- /dev/null
+++ b/kubernetes/namespaces/databases/postgresql/service.yaml
@@ -0,0 +1,26 @@
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: postgres
+ name: postgres
+ namespace: databases
+spec:
+ ports:
+ - port: 5432
+ selector:
+ app: postgres
+---
+# Fallback service for items relying on svc/postgres in the default namespace
+apiVersion: v1
+kind: Service
+metadata:
+ name: postgres
+ namespace: default
+spec:
+ type: ExternalName
+ externalName: postgres.databases.svc.cluster.local
+ ports:
+ - port: 5432
+ selector:
+ app: postgres