Skip to content

Commit

Permalink
Explicitly set kubelet's log files in Prepare-Node.ps1
Browse files Browse the repository at this point in the history
Signed-off-by: Wenying Dong <wenyingd@vmware.com>
  • Loading branch information
wenyingd committed Apr 16, 2024
1 parent 90b3710 commit be36743
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hack/windows/Prepare-Node.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ Write-Host "Registering kubelet service"
nssm install kubelet $global:Powershell $global:PowershellArgs $global:StartKubeletScript

nssm set kubelet DependOnService $ContainerRuntime
nssm set kubelet AppStdout C:\var\log\kubelet\kubelet.log
# Replace kubelet.log on every service restart
nssm set kubelet AppStdoutCreationDisposition 2
nssm set kubelet AppStderr C:\var\log\kubelet\kubelet.err.log
# Replace kubelet.err.log on every service restart
nssm set kubelet AppStderrCreationDisposition 2

New-NetFirewallRule -Name kubelet -DisplayName 'kubelet' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 10250

Expand Down

0 comments on commit be36743

Please sign in to comment.