From fe7c2709f9108b4a5e03672fd93299f2296f759b Mon Sep 17 00:00:00 2001 From: Spencer Smith Date: Fri, 28 Apr 2017 13:40:54 -0400 Subject: [PATCH] mount os-release to ensure the node's OS is what's seen in k8s api --- roles/kubernetes/node/templates/kubelet-container.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/kubernetes/node/templates/kubelet-container.j2 b/roles/kubernetes/node/templates/kubelet-container.j2 index 75d067cf6..b5b89461a 100644 --- a/roles/kubernetes/node/templates/kubelet-container.j2 +++ b/roles/kubernetes/node/templates/kubelet-container.j2 @@ -25,6 +25,7 @@ -v /var/lib/cni:/var/lib/cni:shared \ -v /var/run:/var/run:rw \ -v {{kube_config_dir}}:{{kube_config_dir}}:ro \ + -v /etc/os-release:/etc/os-release \ {{ hyperkube_image_repo }}:{{ hyperkube_image_tag}} \ ./hyperkube kubelet \ "$@"