Refactor PostgreSQL deployment and service configuration

This commit is contained in:
2024-09-19 19:14:05 +08:00
parent 3d14f85c68
commit 04a0a70368
3 changed files with 1074 additions and 1 deletions
+34 -1
View File
@@ -60,4 +60,37 @@ spec:
- name: postgres
port: 5432
targetPort: 5432
type: ClusterIP
type: ClusterIP
---
apiVersion: traefik.io/v1alpha1
kind: IngressRouteTCP
metadata:
name: ingressroute.tcp
namespace: default
spec:
entryPoints:
- tcpep
routes:
- match: HostSNI(`testtcp.traefik.local`)
services:
- name: whoamitcp
port: 8080
---
apiVersion: traefik.io/v1alpha1
kind: IngressRouteTCP
metadata:
name: postgresqlss
namespace: postgres-service
spec:
entryPoints:
- postgres
routes:
- match: HostSNI(`*`)
services:
- name: postgresql-hl
port: 5432