mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 00:07:50 +00:00
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 &kubecontainer.Mount{
|
||||
Name: "k8s-managed-etc-hosts",
|
||||
ContainerPath: etcHostsPath,
|
||||
HostPath: hostsFilePath,
|
||||
ReadOnly: false,
|
||||
Name: "k8s-managed-etc-hosts",
|
||||
ContainerPath: etcHostsPath,
|
||||
HostPath: hostsFilePath,
|
||||
ReadOnly: false,
|
||||
SELinuxRelabel: true,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user