do not wait for node ready when starting kube-proxy in 'nokubelet' mode

This commit is contained in:
mlmhl 2019-12-24 14:23:26 +08:00
parent d758fc3edb
commit 57aa092ffe

View File

@ -807,9 +807,11 @@ function start_kubelet {
function start_kubeproxy {
PROXY_LOG=${LOG_DIR}/kube-proxy.log
# wait for kubelet collect node information
echo "wait kubelet ready"
wait_node_ready
if [[ "${START_MODE}" != "nokubelet" ]]; then
# wait for kubelet collect node information
echo "wait kubelet ready"
wait_node_ready
fi
cat <<EOF > /tmp/kube-proxy.yaml
apiVersion: kubeproxy.config.k8s.io/v1alpha1