Plumb node labels through salt

Expose node-labels flag on kubelet for gce via a startup script
env var.
This commit is contained in:
Jeff Lowdermilk
2016-02-18 15:58:08 -08:00
parent 699c80b752
commit c406665b2b
6 changed files with 20 additions and 6 deletions

View File

@@ -600,6 +600,11 @@ KUBEPROXY_TEST_LOG_LEVEL: $(yaml-quote ${KUBEPROXY_TEST_LOG_LEVEL})
EOF
fi
fi
if [ -n "${NODE_LABELS:-}" ]; then
cat >>$file <<EOF
NODE_LABELS: $(yaml-quote ${NODE_LABELS})
EOF
fi
if [[ "${OS_DISTRIBUTION}" == "coreos" ]]; then
# CoreOS-only env vars. TODO(yifan): Make them available on other distros.
cat >>$file <<EOF