Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
fix: fixing an issue where windows cannot start kubelet to get podCID…
Browse files Browse the repository at this point in the history
…R on Windows nodes when using kubenet (#4039)
  • Loading branch information
marosset authored Nov 17, 2020
1 parent acf7eaa commit 8e6c8f5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions staging/provisioning/windows/kubeletstart.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ipmo $global:HNSModule

# Calculate some local paths
$global:VolumePluginDir = [Io.path]::Combine($global:KubeDir, "volumeplugins")
mkdir $global:VolumePluginDir
mkdir $global:VolumePluginDir -Force

$KubeletArgList = $Global:ClusterConfiguration.Kubernetes.Kubelet.ConfigArgs # This is the initial list passed in from aks-engine
$KubeletArgList += "--node-labels=$global:KubeletNodeLabels"
Expand Down Expand Up @@ -212,9 +212,7 @@ if ($global:NetworkPlugin -eq "kubenet") {

# if the podCIDR has not yet been assigned to this node, start the kubelet process to get the podCIDR, and then promptly kill it.
if (-not $podCidrDiscovered) {
$argList = $KubeletArgListStr

$process = Start-Process -FilePath c:\k\kubelet.exe -PassThru -ArgumentList $argList
$process = Start-Process -FilePath c:\k\kubelet.exe -PassThru -ArgumentList $KubeletArgList

# run kubelet until podCidr is discovered
Write-Host "waiting to discover pod CIDR"
Expand Down

0 comments on commit 8e6c8f5

Please sign in to comment.