Skip to content

Commit

Permalink
Allow to reconfıgure --image-pull-progress-deadline
Browse files Browse the repository at this point in the history
  • Loading branch information
sidoruka committed Sep 11, 2023
1 parent 01ac8ed commit d8d4481
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/autoscaling/init_multicloud_v1.15.4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,12 @@ _KUBE_LOG_ARGS="--logtostderr=false --log-dir=$_KUBELET_LOG_PATH"
_KUBE_NODE_NAME="${_KUBE_NODE_NAME:-$(hostname)}"
_KUBE_NODE_NAME_ARGS="--hostname-override $_KUBE_NODE_NAME"

_KUBE_PULL_TIMEOUT="@kube_pull_deadline@"
if [ -z "$_KUBE_PULL_TIMEOUT" ] || [[ "$_KUBE_PULL_TIMEOUT" == "@"*"@" ]]; then
_KUBE_PULL_TIMEOUT="10m"
fi
_KUBE_OTHER_ARGS="--image-pull-progress-deadline $_KUBE_PULL_TIMEOUT"

# FIXME: use the .NodeRegistration.KubeletExtraArgs object in the configuration files
_KUBELET_INITD_DROPIN_PATH="/etc/sysconfig/kubelet"
rm -f $_KUBELET_INITD_DROPIN_PATH
Expand All @@ -397,7 +403,7 @@ _KUBE_SYS_RESERVED_ARGS="--system-reserved cpu=300m,memory=${_KUBE_NODE_MEM_RESE
_KUBE_EVICTION_ARGS="--eviction-hard= --eviction-soft= --eviction-soft-grace-period= --pod-max-pids=-1"
_KUBE_FAIL_ON_SWAP_ARGS="--fail-swap-on=false"

echo "KUBELET_EXTRA_ARGS=$_KUBE_NODE_INSTANCE_LABELS $_KUBE_LOG_ARGS $_KUBE_NODE_NAME_ARGS $_KUBE_RESERVED_ARGS $_KUBE_SYS_RESERVED_ARGS $_KUBE_EVICTION_ARGS $_KUBE_FAIL_ON_SWAP_ARGS" >> $_KUBELET_INITD_DROPIN_PATH
echo "KUBELET_EXTRA_ARGS=$_KUBE_NODE_INSTANCE_LABELS $_KUBE_LOG_ARGS $_KUBE_NODE_NAME_ARGS $_KUBE_RESERVED_ARGS $_KUBE_SYS_RESERVED_ARGS $_KUBE_EVICTION_ARGS $_KUBE_FAIL_ON_SWAP_ARGS $_KUBE_OTHER_ARGS" >> $_KUBELET_INITD_DROPIN_PATH
chmod +x $_KUBELET_INITD_DROPIN_PATH

systemctl enable docker
Expand Down

0 comments on commit d8d4481

Please sign in to comment.