postgres-operator icon indicating copy to clipboard operation
postgres-operator copied to clipboard

Enviroment variable in pods deployed via PostgresqlOperator v5.0.4

Open maleka12 opened this issue 3 years ago • 2 comments

Overview

We want to add ENV to each pod deployed by postgrescluster crd. Is there any option to do that for every new deployed PostgresCluster by default? By now the only way I found to achieve that is to set env to statefulset manually, after cluster is deployed.

Use Case

We want to set proper TimeZone by adding env TZ into containers.

Desired Behavior

Enviroment variable will be automatically added to any new instance of postgrescluster.

Environment

  • Platform: OpenShift
  • Platform Version: 4.8.29
  • PGO Image Tag: ubi8-13.5-0
  • Postgres Version: 13
  • Storage: CEPH

maleka12 avatar Feb 23 '22 11:02 maleka12

+1 Could be very useful, for ex. additional env AWS_STS_REGIONAL_ENDPOINTS=regional to pgbackrest containers to assume role with access to S3 within local VPC STS endpoint

aleksey-dv avatar Jun 23 '22 14:06 aleksey-dv

Just writing to let you know that we have this issue in our backlog as it is a fairly common feature request.

benjaminjb avatar Oct 19 '22 18:10 benjaminjb