mirror of https://github.com/k3s-io/k3s
Set slave mount propagation for local provisioner
parent
1102fd0dcb
commit
bf70c0af4e
|
@ -1337,6 +1337,8 @@ func createVolumeConfigMap(config *localTestConfig) {
|
|||
|
||||
func createProvisionerDaemonset(config *localTestConfig) {
|
||||
provisionerPrivileged := true
|
||||
mountProp := v1.MountPropagationHostToContainer
|
||||
|
||||
provisioner := &extv1beta1.DaemonSet{
|
||||
TypeMeta: metav1.TypeMeta{
|
||||
Kind: "DaemonSet",
|
||||
|
@ -1387,8 +1389,9 @@ func createProvisionerDaemonset(config *localTestConfig) {
|
|||
MountPath: "/etc/provisioner/config/",
|
||||
},
|
||||
{
|
||||
Name: "local-disks",
|
||||
MountPath: provisionerDefaultMountRoot,
|
||||
Name: "local-disks",
|
||||
MountPath: provisionerDefaultMountRoot,
|
||||
MountPropagation: &mountProp,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue