From 990bf271c2776c3ee0905ae4713b2b72711357f4 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 5 Apr 2019 09:24:42 +0200 Subject: kube: correctly set the default for MemorySwappiness Signed-off-by: Giuseppe Scrivano --- cmd/podman/play_kube.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd/podman') diff --git a/cmd/podman/play_kube.go b/cmd/podman/play_kube.go index b468a7a89..7a2b4100b 100644 --- a/cmd/podman/play_kube.go +++ b/cmd/podman/play_kube.go @@ -243,6 +243,9 @@ func kubeContainerToCreateConfig(ctx context.Context, containerYAML v1.Container envs map[string]string ) + // The default for MemorySwappiness is -1, not 0 + containerConfig.Resources.MemorySwappiness = -1 + containerConfig.Runtime = runtime containerConfig.Image = containerYAML.Image containerConfig.ImageID = newImage.ID() -- cgit v1.2.3-54-g00ecf