Mark container hosts file for SELinux relabel
This commit is contained in:
parent
42ff2b3890
commit
ca9a455f2c
@ -133,10 +133,11 @@ func makeHostsMount(podDir, podIP, hostName, hostDomainName string) (*kubecontai
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return &kubecontainer.Mount{
|
return &kubecontainer.Mount{
|
||||||
Name: "k8s-managed-etc-hosts",
|
Name: "k8s-managed-etc-hosts",
|
||||||
ContainerPath: etcHostsPath,
|
ContainerPath: etcHostsPath,
|
||||||
HostPath: hostsFilePath,
|
HostPath: hostsFilePath,
|
||||||
ReadOnly: false,
|
ReadOnly: false,
|
||||||
|
SELinuxRelabel: true,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user