-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
If you attempt to change the size of the storage volume (in AWS), the operator configuration setting spilo_privileged
must be set to true otherwise you get this error in the logs (placing this for future googlers encountering this):
could not sync cluster: could not sync persistent volumes: could not sync volumes: could not resize the filesystem on pod \"<namespace>/<pod name>\": could not execute: command terminated with exit code 1
Potential improvements:
- Use a PodSecurityPolicy with finer grained permissions so the running pods in privileged mode is not required for this feature
- documentation: mention this config in the resizing section: https://postgres-operator.readthedocs.io/en/latest/reference/cluster_manifest/#ebs-volume-resizing
(I could potentially look at these if there is interest)
jonhatallasf and jorgex1