Share /var/lib/kubernetes on startup

Kubelet makes sure that /var/lib/kubelet is rshared when it starts.
If not, it bind-mounts it with rshared propagation to containers
that mount volumes to /var/lib/kubelet can benefit from mount propagation.
This commit is contained in:
Jan Safranek
2017-08-30 16:45:04 +02:00
parent 5030391c07
commit d9500105d8
15 changed files with 362 additions and 86 deletions

View File

@@ -160,6 +160,7 @@ func newTestKubeletWithImageList(
kubelet.recorder = fakeRecorder
kubelet.kubeClient = fakeKubeClient
kubelet.os = &containertest.FakeOS{}
kubelet.mounter = &mount.FakeMounter{}
kubelet.hostname = testKubeletHostname
kubelet.nodeName = types.NodeName(testKubeletHostname)