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

Commit

Permalink
feat: Allow setting Kubeproxy parameters by :ClusterConfiguration.Kub…
Browse files Browse the repository at this point in the history
…ernetes.Kubeproxy.ConfigArgs
  • Loading branch information
AbelHu committed Sep 8, 2021
1 parent d0da828 commit 6caf4dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions staging/provisioning/windows/kubeproxystart.ps1
Expand Up @@ -11,6 +11,11 @@ $global:HNSModule = "c:\k\hns.psm1"
$global:KubeDir = $Global:ClusterConfiguration.Install.Destination
$global:KubeproxyArgList = @("--v=3", "--proxy-mode=kernelspace", "--hostname-override=$env:computername", "--kubeconfig=$KubeDir\config")

if ($Global:ClusterConfiguration.Kubernetes.Kubeproxy.ConfigArgs) {
Write-Host "Customized args: $($Global:ClusterConfiguration.Kubernetes.Kubeproxy.ConfigArgs)"
$global:KubeproxyArgList += $Global:ClusterConfiguration.Kubernetes.Kubeproxy.ConfigArgs
}

$hnsNetwork = Get-HnsNetwork | ? Name -EQ $KubeNetwork
while (!$hnsNetwork) {
Write-Host "$(Get-Date -Format o) Waiting for Network [$KubeNetwork] to be created . . ."
Expand Down

0 comments on commit 6caf4dd

Please sign in to comment.