feat: update k3s-inside-dind
This commit is contained in:
@@ -17,9 +17,19 @@ done
|
||||
echo "Docker is ready."
|
||||
|
||||
echo "Starting K3s..."
|
||||
exec k3s server \
|
||||
--snapshotter=native \
|
||||
--disable=traefik \
|
||||
--write-kubeconfig-mode=644 \
|
||||
--https-listen-port=6443 \
|
||||
"$@"
|
||||
|
||||
# Build K3s server arguments
|
||||
K3S_ARGS="--snapshotter=native --write-kubeconfig-mode=644 --https-listen-port=6443"
|
||||
|
||||
# Add disable services if specified
|
||||
if [ -n "$K3S_DISABLE_SERVICES" ]; then
|
||||
K3S_ARGS="$K3S_ARGS --disable=$K3S_DISABLE_SERVICES"
|
||||
fi
|
||||
|
||||
# Add token if specified
|
||||
if [ -n "$K3S_TOKEN" ]; then
|
||||
export K3S_TOKEN
|
||||
fi
|
||||
|
||||
# Execute K3s server with all arguments
|
||||
exec k3s server $K3S_ARGS "$@"
|
||||
|
||||
Reference in New Issue
Block a user