Skip to content

Commit

Permalink
feat: adding kubelet and csi-proxy-server as windows defender exclude…
Browse files Browse the repository at this point in the history
…d processes (Azure#2967) (Azure#3118)

Co-authored-by: Mark Rossetti <marosset@microsoft.com>
  • Loading branch information
AbelHu and marosset committed Apr 22, 2020
1 parent 1cf27ab commit 320fd4a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
8 changes: 8 additions & 0 deletions parts/k8s/kuberneteswindowsfunctions.ps1
Expand Up @@ -233,3 +233,11 @@ function Assert-FileExists {
throw "$Filename does not exist"
}
}

function Update-DefenderPreferences {
Add-MpPreference -ExclusionProcess "c:\k\kubelet.exe"

if ($global:EnableCsiProxy) {
Add-MpPreference -ExclusionProcess "c:\k\csi-proxy-server.exe"
}
}
3 changes: 2 additions & 1 deletion parts/k8s/kuberneteswindowssetup.ps1
Expand Up @@ -414,7 +414,8 @@ try
Adjust-DynamicPortRange
Register-LogsCleanupScriptTask
Register-NodeResetScriptTask

Update-DefenderPreferences

if (Test-Path $CacheDir)
{
Write-Log "Removing aks-engine bits cache directory"
Expand Down
11 changes: 10 additions & 1 deletion pkg/engine/templates_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 320fd4a

Please sign in to comment.