Use HostToContainer mountPropagation

For any host mounts that include /var/lib/kubelet, use HostToContainer
mountPropagation, which avoids creating extra references to mounts in
other containers.

Affects the following resources:
* neutron-lb-agent daemonset
* neutron-ovs-agent daemonset
* neutron-sriov-agent daemonset (unused mount removed)
* nova-compute daemeonset

Change-Id: I92f1700e56517a74b1fbcc8e3a68567045a593ee
This commit is contained in:
Sphicas, Phil (ps3910) 2021-01-07 20:19:04 +00:00
parent 97187997e4
commit c7c19e85c0
6 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0 appVersion: v1.0.0
description: OpenStack-Helm Neutron description: OpenStack-Helm Neutron
name: neutron name: neutron
version: 0.1.5 version: 0.1.6
home: https://docs.openstack.org/neutron/latest/ home: https://docs.openstack.org/neutron/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Neutron/OpenStack_Project_Neutron_vertical.png icon: https://www.openstack.org/themes/openstack/images/project-mascots/Neutron/OpenStack_Project_Neutron_vertical.png
sources: sources:

View File

@ -78,6 +78,7 @@ spec:
readOnly: true readOnly: true
- name: host-rootfs - name: host-rootfs
mountPath: /mnt/host-rootfs mountPath: /mnt/host-rootfs
mountPropagation: HostToContainer
readOnly: true readOnly: true
- name: neutron-lb-agent-init - name: neutron-lb-agent-init
{{ tuple $envAll "neutron_linuxbridge_agent" | include "helm-toolkit.snippets.image" | indent 10 }} {{ tuple $envAll "neutron_linuxbridge_agent" | include "helm-toolkit.snippets.image" | indent 10 }}

View File

@ -95,6 +95,7 @@ spec:
readOnly: true readOnly: true
- name: host-rootfs - name: host-rootfs
mountPath: /mnt/host-rootfs mountPath: /mnt/host-rootfs
mountPropagation: HostToContainer
readOnly: true readOnly: true
{{- if .Values.conf.ovs_dpdk.enabled }} {{- if .Values.conf.ovs_dpdk.enabled }}
- name: pci-devices - name: pci-devices

View File

@ -234,9 +234,6 @@ spec:
- name: run - name: run
hostPath: hostPath:
path: /run path: /run
- name: host-rootfs
hostPath:
path: /
{{ if $mounts_neutron_sriov_agent.volumes }}{{ toYaml $mounts_neutron_sriov_agent.volumes | indent 8 }}{{ end }} {{ if $mounts_neutron_sriov_agent.volumes }}{{ toYaml $mounts_neutron_sriov_agent.volumes | indent 8 }}{{ end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0 appVersion: v1.0.0
description: OpenStack-Helm Nova description: OpenStack-Helm Nova
name: nova name: nova
version: 0.1.6 version: 0.1.7
home: https://docs.openstack.org/nova/latest/ home: https://docs.openstack.org/nova/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Nova/OpenStack_Project_Nova_vertical.png icon: https://www.openstack.org/themes/openstack/images/project-mascots/Nova/OpenStack_Project_Nova_vertical.png
sources: sources:

View File

@ -366,6 +366,7 @@ spec:
{{- if .Values.conf.enable_iscsi }} {{- if .Values.conf.enable_iscsi }}
- name: host-rootfs - name: host-rootfs
mountPath: /mnt/host-rootfs mountPath: /mnt/host-rootfs
mountPropagation: HostToContainer
- name: usrlocalsbin - name: usrlocalsbin
mountPath: /usr/local/sbin mountPath: /usr/local/sbin
- name: etciscsi - name: etciscsi