mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
do not wait for node ready when starting kube-proxy in 'nokubelet' mode
This commit is contained in:
parent
d758fc3edb
commit
57aa092ffe
@ -807,9 +807,11 @@ function start_kubelet {
|
|||||||
function start_kubeproxy {
|
function start_kubeproxy {
|
||||||
PROXY_LOG=${LOG_DIR}/kube-proxy.log
|
PROXY_LOG=${LOG_DIR}/kube-proxy.log
|
||||||
|
|
||||||
|
if [[ "${START_MODE}" != "nokubelet" ]]; then
|
||||||
# wait for kubelet collect node information
|
# wait for kubelet collect node information
|
||||||
echo "wait kubelet ready"
|
echo "wait kubelet ready"
|
||||||
wait_node_ready
|
wait_node_ready
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF > /tmp/kube-proxy.yaml
|
cat <<EOF > /tmp/kube-proxy.yaml
|
||||||
apiVersion: kubeproxy.config.k8s.io/v1alpha1
|
apiVersion: kubeproxy.config.k8s.io/v1alpha1
|
||||||
|
Loading…
Reference in New Issue
Block a user