Browse Source

mount os-release to ensure the node's OS is what's seen in k8s api

pull/1266/head
Spencer Smith 7 years ago
parent
commit
5657738f7e
1 changed files with 1 additions and 0 deletions
  1. 1
      roles/kubernetes/node/templates/kubelet-container.j2

1
roles/kubernetes/node/templates/kubelet-container.j2

@ -25,6 +25,7 @@
-v /var/lib/cni:/var/lib/cni:shared \ -v /var/lib/cni:/var/lib/cni:shared \
-v /var/run:/var/run:rw \ -v /var/run:/var/run:rw \
-v {{kube_config_dir}}:{{kube_config_dir}}:ro \ -v {{kube_config_dir}}:{{kube_config_dir}}:ro \
-v /etc/os-release:/etc/os-release \
{{ hyperkube_image_repo }}:{{ hyperkube_image_tag}} \ {{ hyperkube_image_repo }}:{{ hyperkube_image_tag}} \
./hyperkube kubelet \ ./hyperkube kubelet \
"$@" "$@"
Loading…
Cancel
Save