Use instance for volume names

This commit is contained in:
Daniel Berteaud 2023-10-27 14:18:23 +02:00
parent ec7733107b
commit da3d31baa5

View File

@ -255,9 +255,14 @@ pg:
# Volumes
volumes:
# The data volume is used to store postgres data
# It'll be opened as single-node-writer, and it's recommended to be a block based volume (eg, iSCSI)
# The volumes are connected using per_alloc, so the alloc ID will be appended. Eg postgres-data[0], postgres-data[1] etc.
data:
type: csi
source: postgres-data
source: '[[ .pg.instance ]]-data'
# Backup volume (can be used for pgbackrest and dumps)
# Will be opened as multi-node-multi-writer. Can be NFS
backup:
type: csi
source: postgres-backup
source: '[[ .pg.instance ]]-backup'