feat: add --kubelet-args to scheduler-k3s:initialize

The server node created by `scheduler-k3s:initialize` had no way to receive kubelet arguments, unlike nodes joined through `scheduler-k3s:cluster:add` or configured via `scheduler-k3s:profiles:add`. This meant settings such as `allowed-unsafe-sysctls` were unreachable on a single-node install.
This commit is contained in:
Jose Diaz-Gonzalez
2026-08-07 02:31:12 -04:00
parent 28b4126091
commit 8e17eee653
7 changed files with 176 additions and 36 deletions

View File

@@ -740,6 +740,10 @@ install_k3s() {
args="$args --server-ip $CI_SERVER_IP"
fi
if [[ -n "$KUBELET_ARGS" ]]; then
args="$args --kubelet-args $KUBELET_ARGS"
fi
run /bin/bash -c "dokku scheduler-k3s:initialize ${args}"
echo "output: $output"
echo "status: $status"