Nova/Libvirt: mount vm state directories with bidirectional propagation
This PS updates the Nova and Libvirt charts to mount the vm state directories with bidirectional mount propagation for k8s >= 1.10. This allows mounts created by some volume drivers to be used, and unaffected by pod restart. Change-Id: Idaf664efb23a424dd8d9e1376ea7231b8565e3fe Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
parent
861b6dc1bd
commit
25e50a34c6
@ -141,8 +141,14 @@ spec:
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
- name: var-lib-libvirt
|
- name: var-lib-libvirt
|
||||||
mountPath: /var/lib/libvirt
|
mountPath: /var/lib/libvirt
|
||||||
|
{{- if or ( gt .Capabilities.KubeVersion.Major "1" ) ( ge .Capabilities.KubeVersion.Minor "10" ) }}
|
||||||
|
mountPropagation: Bidirectional
|
||||||
|
{{- end }}
|
||||||
- name: var-lib-nova
|
- name: var-lib-nova
|
||||||
mountPath: /var/lib/nova
|
mountPath: /var/lib/nova
|
||||||
|
{{- if or ( gt .Capabilities.KubeVersion.Major "1" ) ( ge .Capabilities.KubeVersion.Minor "10" ) }}
|
||||||
|
mountPropagation: Bidirectional
|
||||||
|
{{- end }}
|
||||||
- name: run
|
- name: run
|
||||||
mountPath: /run
|
mountPath: /run
|
||||||
- name: dev
|
- name: dev
|
||||||
|
@ -234,8 +234,14 @@ spec:
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
- name: varlibnova
|
- name: varlibnova
|
||||||
mountPath: /var/lib/nova
|
mountPath: /var/lib/nova
|
||||||
|
{{- if or ( gt .Capabilities.KubeVersion.Major "1" ) ( ge .Capabilities.KubeVersion.Minor "10" ) }}
|
||||||
|
mountPropagation: Bidirectional
|
||||||
|
{{- end }}
|
||||||
- name: varliblibvirt
|
- name: varliblibvirt
|
||||||
mountPath: /var/lib/libvirt
|
mountPath: /var/lib/libvirt
|
||||||
|
{{- if or ( gt .Capabilities.KubeVersion.Major "1" ) ( ge .Capabilities.KubeVersion.Minor "10" ) }}
|
||||||
|
mountPropagation: Bidirectional
|
||||||
|
{{- end }}
|
||||||
- name: run
|
- name: run
|
||||||
mountPath: /run
|
mountPath: /run
|
||||||
- name: cgroup
|
- name: cgroup
|
||||||
|
Loading…
Reference in New Issue
Block a user