Use new namespace mode and support shared pid namespace.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
@@ -104,7 +104,7 @@ func WithHostNetwork(p *runtime.PodSandboxConfig) {
|
||||
}
|
||||
if p.Linux.SecurityContext.NamespaceOptions == nil {
|
||||
p.Linux.SecurityContext.NamespaceOptions = &runtime.NamespaceOption{
|
||||
HostNetwork: true,
|
||||
Network: runtime.NamespaceMode_NODE,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user