From f08d30df6b871044135534eedf76c8f2760d9923 Mon Sep 17 00:00:00 2001 From: Phil Sphicas Date: Thu, 7 Jan 2021 18:27:19 +0000 Subject: [PATCH] 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: * ingress deployment * openvswitch-vswitchd daemonset Change-Id: I5964c595210af60d54158e6f7c962d5abe77fc2f --- ingress/Chart.yaml | 2 +- ingress/templates/deployment-ingress.yaml | 1 + openvswitch/Chart.yaml | 2 +- openvswitch/templates/daemonset-ovs-vswitchd.yaml | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ingress/Chart.yaml b/ingress/Chart.yaml index 4a5632645..982ba0813 100644 --- a/ingress/Chart.yaml +++ b/ingress/Chart.yaml @@ -15,7 +15,7 @@ apiVersion: v1 appVersion: v0.32.0 description: OpenStack-Helm Ingress Controller name: ingress -version: 0.2.0 +version: 0.2.1 home: https://github.com/kubernetes/ingress sources: - https://github.com/kubernetes/ingress diff --git a/ingress/templates/deployment-ingress.yaml b/ingress/templates/deployment-ingress.yaml index 6fa223eb2..07bd2db03 100644 --- a/ingress/templates/deployment-ingress.yaml +++ b/ingress/templates/deployment-ingress.yaml @@ -217,6 +217,7 @@ spec: readOnly: true - name: host-rootfs mountPath: /mnt/host-rootfs + mountPropagation: HostToContainer readOnly: true - name: ingress-vip-init {{ tuple $envAll "ingress_routed_vip" | include "helm-toolkit.snippets.image" | indent 10 }} diff --git a/openvswitch/Chart.yaml b/openvswitch/Chart.yaml index ec12b57a3..a6a824b8b 100644 --- a/openvswitch/Chart.yaml +++ b/openvswitch/Chart.yaml @@ -15,7 +15,7 @@ apiVersion: v1 appVersion: v1.0.0 description: OpenStack-Helm OpenVSwitch name: openvswitch -version: 0.1.2 +version: 0.1.3 home: http://openvswitch.org icon: https://www.openstack.org/themes/openstack/images/project-mascots/Neutron/OpenStack_Project_Neutron_vertical.png sources: diff --git a/openvswitch/templates/daemonset-ovs-vswitchd.yaml b/openvswitch/templates/daemonset-ovs-vswitchd.yaml index 2f60a0db4..9ed00e00d 100644 --- a/openvswitch/templates/daemonset-ovs-vswitchd.yaml +++ b/openvswitch/templates/daemonset-ovs-vswitchd.yaml @@ -85,6 +85,7 @@ spec: readOnly: true - name: host-rootfs mountPath: /mnt/host-rootfs + mountPropagation: HostToContainer readOnly: true containers: - name: openvswitch-vswitchd