mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-01 07:31:47 +02:00
Add config switch to share pg_socket in /var/run/postgresql via an emptyDir with the sidecar containers (#962)
This commit is contained in:
+9
-1
@@ -1006,6 +1006,14 @@ option must be set to `true`.
|
||||
|
||||
If you want to add a sidecar to every cluster managed by the operator, you can specify it in the [operator configuration](administrator.md#sidecars-for-postgres-clusters) instead.
|
||||
|
||||
### Accessing the PostgreSQL socket from sidecars
|
||||
|
||||
If enabled by the `share_pg_socket_with_sidecars` option in the operator
|
||||
configuration the PostgreSQL socket is placed in a volume of type
|
||||
`emptyDir` named `postgresql-run`.
|
||||
To allow access to the socket from any sidecar container simply add a
|
||||
VolumeMount to this volume to your sidecar spec.
|
||||
|
||||
## InitContainers Support
|
||||
|
||||
Each cluster can specify arbitrary init containers to run. These containers can
|
||||
@@ -1049,7 +1057,7 @@ When using AWS with gp3 volumes you should set the mode to `mixed` because it
|
||||
will also adjust the IOPS and throughput that can be defined in the manifest.
|
||||
Check the [AWS docs](https://aws.amazon.com/ebs/general-purpose/) to learn
|
||||
about default and maximum values. Keep in mind that AWS rate-limits updating
|
||||
volume specs to no more than once every 6 hours.
|
||||
volume specs to no more than once every 6 hours.
|
||||
|
||||
```yaml
|
||||
spec:
|
||||
|
||||
Reference in New Issue
Block a user