mirror of https://github.com/k3s-io/k3s
Merge pull request #74561 from moshe010/start_kube_scheduler
Move start kubescheduler to it own functionpull/564/head
commit
343bb4bd6b
|
@ -818,6 +818,9 @@ EOF
|
||||||
--config=/tmp/kube-proxy.yaml \
|
--config=/tmp/kube-proxy.yaml \
|
||||||
--master="https://${API_HOST}:${API_SECURE_PORT}" >"${PROXY_LOG}" 2>&1 &
|
--master="https://${API_HOST}:${API_SECURE_PORT}" >"${PROXY_LOG}" 2>&1 &
|
||||||
PROXY_PID=$!
|
PROXY_PID=$!
|
||||||
|
}
|
||||||
|
|
||||||
|
function start_kubescheduler {
|
||||||
|
|
||||||
SCHEDULER_LOG=${LOG_DIR}/kube-scheduler.log
|
SCHEDULER_LOG=${LOG_DIR}/kube-scheduler.log
|
||||||
${CONTROLPLANE_SUDO} "${GO_OUT}/hyperkube" scheduler \
|
${CONTROLPLANE_SUDO} "${GO_OUT}/hyperkube" scheduler \
|
||||||
|
@ -1012,6 +1015,7 @@ if [[ "${START_MODE}" != "kubeletonly" ]]; then
|
||||||
start_cloud_controller_manager
|
start_cloud_controller_manager
|
||||||
fi
|
fi
|
||||||
start_kubeproxy
|
start_kubeproxy
|
||||||
|
start_kubescheduler
|
||||||
start_kubedns
|
start_kubedns
|
||||||
if [[ "${ENABLE_NODELOCAL_DNS:-}" == "true" ]]; then
|
if [[ "${ENABLE_NODELOCAL_DNS:-}" == "true" ]]; then
|
||||||
start_nodelocaldns
|
start_nodelocaldns
|
||||||
|
|
Loading…
Reference in New Issue