Mark container hosts file for SELinux relabel

This commit is contained in:
Paul Morie 2016-10-24 18:42:19 -04:00
parent 42ff2b3890
commit ca9a455f2c

View File

@ -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
} }