File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -204,16 +204,15 @@ services:
204204 # ==============================
205205 label-studio-pgbouncer :
206206 container_name : label-studio-pgbouncer
207- image : pgbouncer /pgbouncer:latest
207+ image : edoburu /pgbouncer:latest
208208 restart : on-failure
209- ports :
210- - " 6432:6432"
211209 environment :
212- - DATABASES_HOST=datamate-database
213- - DATABASES_PORT=5432
214- - DATABASES_NAME=labelstudio
215- - DATABASES_USER=postgres
216- - DATABASES_PASSWORD=${DB_PASSWORD:-password}
210+ - DB_HOST=datamate-database
211+ - DB_PORT=5432
212+ - DB_NAME=labelstudio
213+ - DB_USER=postgres
214+ - DB_PASSWORD=${DB_PASSWORD:-password}
215+ - AUTH_TYPE=scram-sha-256
217216 - POOL_MODE=transaction
218217 - MAX_CLIENT_CONN=100
219218 - DEFAULT_POOL_SIZE=20
@@ -241,7 +240,7 @@ services:
241240 - POSTGRE_NAME=labelstudio
242241 - POSTGRE_USER=postgres
243242 - POSTGRE_PASSWORD=${DB_PASSWORD:-password}
244- - POSTGRE_PORT=6432
243+ - POSTGRE_PORT=5432
245244 - POSTGRE_HOST=label-studio-pgbouncer
246245 - LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-}
247246 - LOCAL_FILES_SERVING_ENABLED=true
Original file line number Diff line number Diff line change 3838 - name : POSTGRE_PASSWORD
3939 value : {{ .Values.env.POSTGRE_PASSWORD | quote }}
4040 - name : POSTGRE_PORT
41- value : {{ if .Values.pgbouncer.enabled }}{{ "6432" | quote }}{{ else }}{{ .Values.env.POSTGRE_PORT | quote }}{{ end }}
41+ value : 5432
4242 - name : POSTGRE_HOST
4343 value : {{ if .Values.pgbouncer.enabled }}{{ printf "%s-pgbouncer" (include "label-studio.fullname" .) | quote }}{{ else }}{{ .Values.env.POSTGRE_HOST | quote }}{{ end }}
4444 - name : LABEL_STUDIO_HOST
Original file line number Diff line number Diff line change @@ -30,18 +30,18 @@ spec:
3030 imagePullPolicy : {{ .Values.pgbouncer.image.pullPolicy }}
3131 ports :
3232 - name : pgbouncer
33- containerPort : 6432
33+ containerPort : 5432
3434 protocol : TCP
3535 env :
36- - name : DATABASES_HOST
36+ - name : DB_HOST
3737 value : {{ .Values.env.POSTGRE_HOST | quote }}
38- - name : DATABASES_PORT
38+ - name : DB_PORT
3939 value : {{ .Values.env.POSTGRE_PORT | quote }}
40- - name : DATABASES_NAME
40+ - name : DB_NAME
4141 value : {{ .Values.env.POSTGRE_NAME | quote }}
42- - name : DATABASES_USER
42+ - name : DB_USER
4343 value : {{ .Values.env.POSTGRE_USER | quote }}
44- - name : DATABASES_PASSWORD
44+ - name : DB_PASSWORD
4545 value : {{ .Values.env.POSTGRE_PASSWORD | quote }}
4646 - name : POOL_MODE
4747 value : {{ .Values.pgbouncer.poolMode | quote }}
@@ -51,14 +51,16 @@ spec:
5151 value : {{ .Values.pgbouncer.defaultPoolSize | quote }}
5252 - name : MAX_DB_CONNECTIONS
5353 value : {{ .Values.pgbouncer.maxDbConnections | quote }}
54+ - name : AUTH_TYPE
55+ value : {{ .Values.pgbouncer.authType | quote }}
5456 livenessProbe :
5557 tcpSocket :
56- port : 6432
58+ port : 5432
5759 initialDelaySeconds : 15
5860 periodSeconds : 20
5961 readinessProbe :
6062 tcpSocket :
61- port : 6432
63+ port : 5432
6264 initialDelaySeconds : 5
6365 periodSeconds : 10
6466 resources :
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ metadata:
1111spec :
1212 type : ClusterIP
1313 ports :
14- - port : 6432
14+ - port : 5432
1515 targetPort : pgbouncer
1616 protocol : TCP
1717 name : pgbouncer
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ pgbouncer:
7272 replicaCount : 1
7373
7474 image :
75- repository : pgbouncer /pgbouncer
75+ repository : edoburu /pgbouncer
7676 tag : " latest"
7777 pullPolicy : IfNotPresent
7878
@@ -81,6 +81,7 @@ pgbouncer:
8181 maxClientConn : 100 # Maximum number of client connections
8282 defaultPoolSize : 20 # Default pool size per database (max connections to PostgreSQL)
8383 maxDbConnections : 20 # Maximum database connections (hard limit)
84+ authType : scram-sha-256
8485
8586 resources : {}
8687
You can’t perform that action at this time.
0 commit comments