bump pooler image to use new alpine base image (#1985)
* bump pooler image to use new alpine base image * use a safe default for PGHOST pooler env variable
This commit is contained in:
		
							parent
							
								
									4ee6c66620
								
							
						
					
					
						commit
						88a2931550
					
				|  | @ -597,7 +597,7 @@ spec: | |||
|                     default: "pooler" | ||||
|                   connection_pooler_image: | ||||
|                     type: string | ||||
|                     default: "registry.opensource.zalan.do/acid/pgbouncer:master-22" | ||||
|                     default: "registry.opensource.zalan.do/acid/pgbouncer:master-24" | ||||
|                   connection_pooler_max_db_connections: | ||||
|                     type: integer | ||||
|                     default: 60 | ||||
|  |  | |||
|  | @ -392,7 +392,7 @@ configConnectionPooler: | |||
|   # db user for pooler to use | ||||
|   connection_pooler_user: "pooler" | ||||
|   # docker image | ||||
|   connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-22" | ||||
|   connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-24" | ||||
|   # max db connections the pooler should hold | ||||
|   connection_pooler_max_db_connections: 60 | ||||
|   # default pooling mode | ||||
|  |  | |||
|  | @ -17,7 +17,7 @@ data: | |||
|   # connection_pooler_default_cpu_request: "500m" | ||||
|   # connection_pooler_default_memory_limit: 100Mi | ||||
|   # connection_pooler_default_memory_request: 100Mi | ||||
|   connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-22" | ||||
|   connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-24" | ||||
|   # connection_pooler_max_db_connections: 60 | ||||
|   # connection_pooler_mode: "transaction" | ||||
|   # connection_pooler_number_of_instances: 2 | ||||
|  |  | |||
|  | @ -23,7 +23,7 @@ spec: | |||
|       serviceAccountName: postgres-operator | ||||
|       containers: | ||||
|       - name: postgres-operator | ||||
|         image: registry.opensource.zalan.do/acid/pgbouncer:master-22 | ||||
|         image: registry.opensource.zalan.do/acid/pgbouncer:master-24 | ||||
|         imagePullPolicy: IfNotPresent | ||||
|         resources: | ||||
|           requests: | ||||
|  |  | |||
|  | @ -595,7 +595,7 @@ spec: | |||
|                     default: "pooler" | ||||
|                   connection_pooler_image: | ||||
|                     type: string | ||||
|                     default: "registry.opensource.zalan.do/acid/pgbouncer:master-22" | ||||
|                     default: "registry.opensource.zalan.do/acid/pgbouncer:master-24" | ||||
|                   connection_pooler_max_db_connections: | ||||
|                     type: integer | ||||
|                     default: 60 | ||||
|  |  | |||
|  | @ -190,7 +190,7 @@ configuration: | |||
|     connection_pooler_default_cpu_request: "500m" | ||||
|     connection_pooler_default_memory_limit: 100Mi | ||||
|     connection_pooler_default_memory_request: 100Mi | ||||
|     connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-22" | ||||
|     connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-24" | ||||
|     # connection_pooler_max_db_connections: 60 | ||||
|     connection_pooler_mode: "transaction" | ||||
|     connection_pooler_number_of_instances: 2 | ||||
|  |  | |||
|  | @ -102,8 +102,9 @@ func (c *Cluster) serviceAddress(role PostgresRole) string { | |||
| 		return service.ObjectMeta.Name | ||||
| 	} | ||||
| 
 | ||||
| 	c.logger.Warningf("No service for role %s", role) | ||||
| 	return "" | ||||
| 	defaultAddress := c.serviceName(role) | ||||
| 	c.logger.Warningf("No service for role %s - defaulting to %s", role, defaultAddress) | ||||
| 	return defaultAddress | ||||
| } | ||||
| 
 | ||||
| func (c *Cluster) servicePort(role PostgresRole) int32 { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue