mirror of
https://github.com/optim-enterprises-bv/openstack-helm.git
synced 2025-12-25 17:27:33 +00:00
Libvirt: gracefully shutdown libvirt process on container stop.
This PS gracefully shutdowns the libvirt process on pod termiantion. Change-Id: I4f7f2cac2e2a8586f5c40ac1ad556be74e29459a Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
@@ -121,6 +121,14 @@ spec:
|
||||
{{ end }}
|
||||
command:
|
||||
- /tmp/libvirt.sh
|
||||
lifecycle:
|
||||
preStop:
|
||||
exec:
|
||||
command:
|
||||
- bash
|
||||
- -c
|
||||
- |-
|
||||
kill $(cat /var/run/libvirtd.pid)
|
||||
volumeMounts:
|
||||
- name: libvirt-bin
|
||||
mountPath: /tmp/libvirt.sh
|
||||
|
||||
Reference in New Issue
Block a user