From 5bb3f345d24480140d604f7299fea66bbbb5bdef Mon Sep 17 00:00:00 2001 From: marosset Date: Mon, 2 Nov 2020 13:12:16 -0800 Subject: [PATCH] fixup --- kubeadm/scripts/PrepareNode.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubeadm/scripts/PrepareNode.ps1 b/kubeadm/scripts/PrepareNode.ps1 index 79dc3a64..e361bbb1 100644 --- a/kubeadm/scripts/PrepareNode.ps1 +++ b/kubeadm/scripts/PrepareNode.ps1 @@ -90,7 +90,7 @@ if ($global:containerRuntime -eq "Docker") { $cmd = "C:\k\kubelet.exe $global:KubeletArgs --cert-dir=$env:SYSTEMDRIVE\var\lib\kubelet\pki --config=/var/lib/kubelet/config.yaml --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --hostname-override=$(hostname) --pod-infra-container-image=`"mcr.microsoft.com/oss/kubernetes/pause:1.3.0`" --enable-debugging-handlers --cgroups-per-qos=false --enforce-node-allocatable=`"`" --network-plugin=cni --resolv-conf=`"`" --log-dir=/var/log/kubelet --logtostderr=false --image-pull-progress-deadline=20m" Invoke-Expression $cmd' -$StartKubeletFileContent = $StartKubeletFileContent -replace "{{CONTAINER_RUNTIME}}", "$ContainerRuntime" +$StartKubeletFileContent = $StartKubeletFileContent -replace "{{CONTAINER_RUNTIME}}", "`"$ContainerRuntime`"" Set-Content -Path $global:StartKubeletScript -Value $StartKubeletFileContent Write-Host "Installing nssm"