chore(operator): fast database shutdown
This adds a pre-stop lifecycle hook to perform a fast shutdown of the
database. Fast shutdown terminates all backends closing all client
connections and performs a rollback of any outstanding transactions.
Ref.
- /bin/sh
- -c
- /var/lib/pgsql/sampledb/postStart.sh
+ preStop:
+ exec:
+ command:
+ - /bin/sh
+ - '-c'
+ - 'PGDATA=/var/lib/pgsql/data/userdata /usr/bin/pg_ctl stop --mode fast'
livenessProbe:
initialDelaySeconds: 60
tcpSocket:
