Skip to content

Commit

Permalink
update postgres auth
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulGarewal committed Feb 7, 2025
1 parent 69942e8 commit 496cd1b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions database/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,19 @@ parameters:
value: gluster-file-db
objects:
- apiVersion: v1
kind: ConfigMap
metadata:
name: ${REPO}-${ZONE}-${COMPONENT}-config
labels:
app: ${REPO}-${ZONE}
data:
pg_hba.conf: |
# TYPE DATABASE USER ADDRESS METHOD
local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
host all all 0.0.0.0/0 md5
setup.sql: |-
SET application_name="container_setup";
Expand Down Expand Up @@ -259,6 +271,9 @@ objects:
name: ${REPO}-${ZONE}-${COMPONENT}-run
- mountPath: /pgconf
name: ${REPO}-${ZONE}-${COMPONENT}-setupcfg
- mountPath: /etc/postgresql/pg_hba.conf
name: ${REPO}-${ZONE}-${COMPONENT}-config
subPath: pg_hba.conf
dnsPolicy: ClusterFirst
restartPolicy: Always
volumes:
Expand All @@ -267,6 +282,9 @@ objects:
claimName: ${REPO}-${ZONE}-${COMPONENT}
- name: ${REPO}-${ZONE}-${COMPONENT}-run
emptyDir: {}
- name: ${REPO}-${ZONE}-${COMPONENT}-config
configMap:
name: ${REPO}-${ZONE}-${COMPONENT}-config
- configMap:
name: ${REPO}-${ZONE}-${COMPONENT}-setupcfg
name: ${REPO}-${ZONE}-${COMPONENT}-setupcfg
Expand Down

0 comments on commit 496cd1b

Please sign in to comment.