зеркало из https://github.com/Azure/aks-engine.git
fix: Set enableLoopbackDSR in Windows Azure CNI configuration for WinDSR (#4793)
This commit is contained in:
Родитель
f56b6d0ad2
Коммит
b52686894e
|
@ -125,6 +125,14 @@ Set-AzureCNIConfig
|
|||
Add-Member -InputObject $configJson.plugins[0].ipam -MemberType NoteProperty -Name "environment" -Value "mas"
|
||||
}
|
||||
|
||||
if ($global:KubeproxyFeatureGates.Contains("WinDSR=true")) {
|
||||
Write-Log "Setting enableLoopbackDSR in Azure CNI conflist for WinDSR"
|
||||
$jsonContent = [PSCustomObject]@{
|
||||
'enableLoopbackDSR' = $True
|
||||
}
|
||||
$configJson.plugins[0]|Add-Member -Name "windowsSettings" -Value $jsonContent -MemberType NoteProperty
|
||||
}
|
||||
|
||||
$aclRule1 = [PSCustomObject]@{
|
||||
Type = 'ACL'
|
||||
Protocols = '6'
|
||||
|
|
|
@ -22960,6 +22960,14 @@ Set-AzureCNIConfig
|
|||
Add-Member -InputObject $configJson.plugins[0].ipam -MemberType NoteProperty -Name "environment" -Value "mas"
|
||||
}
|
||||
|
||||
if ($global:KubeproxyFeatureGates.Contains("WinDSR=true")) {
|
||||
Write-Log "Setting enableLoopbackDSR in Azure CNI conflist for WinDSR"
|
||||
$jsonContent = [PSCustomObject]@{
|
||||
'enableLoopbackDSR' = $True
|
||||
}
|
||||
$configJson.plugins[0]|Add-Member -Name "windowsSettings" -Value $jsonContent -MemberType NoteProperty
|
||||
}
|
||||
|
||||
$aclRule1 = [PSCustomObject]@{
|
||||
Type = 'ACL'
|
||||
Protocols = '6'
|
||||
|
|
Загрузка…
Ссылка в новой задаче