Skip to content

Commit

Permalink
Disable CSIMigration if kubelet version is >=1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
sidoruka committed Jan 15, 2024
1 parent d3e57f6 commit e4fb8f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/autoscaling/init_multicloud_v1.15.4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,11 @@ _KUBE_SYS_RESERVED_ARGS="--system-reserved cpu=${SYSTEM_RESERVED_CPU},memory=${S
_KUBE_EVICTION_ARGS="--eviction-hard= --eviction-soft= --eviction-soft-grace-period= --pod-max-pids=-1"
_KUBE_FAIL_ON_SWAP_ARGS="--fail-swap-on=false"

_KUBE_VERSION=$(kubectl version --client=true -o json | jq -r '.clientVersion.minor')
if (( "$_KUBE_VERSION" >= 19)); then
_KUBE_OTHER_ARGS="$_KUBE_OTHER_ARGS --feature-gates CSIMigration=false"
fi

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

Expand Down

0 comments on commit e4fb8f9

Please sign in to comment.