Skip to content

Commit

Permalink
fix: change pooler image to bitnami/pgbouncer
Browse files Browse the repository at this point in the history
  • Loading branch information
dabasvibhor committed Feb 23, 2024
1 parent b985aae commit a8d2968
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
21 changes: 8 additions & 13 deletions chart/templates/pgbouncer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,45 +34,40 @@ spec:
serviceAccountName: {{ include "incident-commander.fullname" . }}-pgbouncer
containers:
- name: pgbouncer
image: edoburu/pgbouncer:1.21.0-p1
image: {{ .Values.db.connectionPooler.image }}
ports:
- containerPort: 5432
env:
- name: AUTH_TYPE
- name: PGBOUNCER_AUTH_TYPE
value: md5
- name: DB_HOST
- name: POSTGRESQL_HOST
valueFrom:
secretKeyRef:
name: {{ .Values.db.secretKeyRef.name }}
key: POSTGRES_HOST
- name: AUTH_USER
- name: POSTGRESQL_USERNAME
valueFrom:
secretKeyRef:
name: {{ .Values.db.secretKeyRef.name }}
key: POSTGRES_USER
- name: DB_USER
valueFrom:
secretKeyRef:
name: {{ .Values.db.secretKeyRef.name }}
key: POSTGRES_USER
- name: DB_PASSWORD
- name: POSTGRESQL_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Values.db.secretKeyRef.name }}
key: POSTGRES_PASSWORD
- name: DB_NAME
- name: POSTGRESQL_DATABASE
valueFrom:
secretKeyRef:
name: {{ .Values.db.secretKeyRef.name }}
key: DATABASE
- name: DB_PORT
- name: POSTGRESQL_PORT
valueFrom:
secretKeyRef:
name: {{ .Values.db.secretKeyRef.name }}
key: POSTGRES_PORT
volumeMounts:
- name: configfiles
mountPath: "/etc/pgbouncer"
mountPath: "/bitnami/pgbouncer/conf/"
readOnly: true
volumes:
- name: configfiles
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ listen_addr = 0.0.0.0
listen_port = 5432
unix_socket_dir =
auth_user = {{ .pguser }}
auth_file = /etc/pgbouncer/userlist.txt
auth_file = /bitnami/pgbouncer/conf/userlist.txt
auth_type = md5
pool_mode = session
max_client_conn = 100
Expand Down
1 change: 1 addition & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ db:
serviceAccount:
annotations: {}
extraContainers: ""
image: bitnami/pgbouncer:1.22.0
storageClass:
storage: 20Gi
shmVolume: 256Mi
Expand Down

0 comments on commit a8d2968

Please sign in to comment.