Merge pull request #289 from 3dwardch3ng/app/sonarqube
fix postgres password issue
This commit is contained in:
31
kubernetes/apps/postgresql/app/ingress.yaml
Normal file
31
kubernetes/apps/postgresql/app/ingress.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: postgres-ingress
|
||||
namespace: postgres
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "postgres.cluster.local"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: postgresql-primary
|
||||
port:
|
||||
number: 5432
|
||||
- host: "replica.postgres.cluster.local"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: postgresql-replica
|
||||
port:
|
||||
number: 5432
|
||||
Reference in New Issue
Block a user