@@ -236,6 +236,8 @@ function Set-EnvironmentVars {
236
236
" NODE_DIR" = ${kube_env} [' NODE_DIR' ]
237
237
" CNI_DIR" = ${kube_env} [' CNI_DIR' ]
238
238
" CNI_CONFIG_DIR" = ${kube_env} [' CNI_CONFIG_DIR' ]
239
+ " WINDOWS_CNI_STORAGE_PATH" = ${kube_env} [' WINDOWS_CNI_STORAGE_PATH' ]
240
+ " WINDOWS_CNI_VERSION" = ${kube_env} [' WINDOWS_CNI_VERSION' ]
239
241
" PKI_DIR" = ${kube_env} [' PKI_DIR' ]
240
242
" CA_FILE_PATH" = ${kube_env} [' CA_FILE_PATH' ]
241
243
" KUBELET_CONFIG" = ${kube_env} [' KUBELET_CONFIG_FILE' ]
@@ -300,7 +302,7 @@ function Download-HelperScripts {
300
302
return
301
303
}
302
304
MustDownload- File - OutFile ${env: K8S_DIR} \hns.psm1 `
303
- - URLs " https://www .googleapis.com/storage/v1/b/ gke-release/o/ winnode%2fconfig%2fsdn%2fmaster%2fhns .psm1?alt=media "
305
+ - URLs " https://storage .googleapis.com/gke-release/winnode/config/sdn/master/hns .psm1"
304
306
}
305
307
306
308
# Takes the Windows version string from the cluster bash scripts (e.g.
@@ -916,7 +918,7 @@ function Configure-HostNetworkingService {
916
918
function Configure-GcePdTools {
917
919
if (ShouldWrite- File ${env: K8S_DIR} \GetGcePdName.dll) {
918
920
MustDownload- File - OutFile ${env: K8S_DIR} \GetGcePdName.dll `
919
- - URLs " https://www .googleapis.com/storage/v1/b/ gke-release/o/ winnode%2fconfig%2fgce -tools%2fmaster%2fGetGcePdName%2fGetGcePdName .dll?alt=media "
921
+ - URLs " https://storage .googleapis.com/gke-release/winnode/config/gce -tools/master/GetGcePdName/GetGcePdName .dll"
920
922
}
921
923
if (-not (Test-Path $PsHome \profile.ps1)) {
922
924
New-Item - path $PsHome \profile.ps1 - type file
@@ -953,16 +955,14 @@ function Configure-CniNetworking {
953
955
# CLUSTER_IP_RANGE
954
956
# SERVICE_CLUSTER_IP_RANGE
955
957
function Configure_Dockerd_CniNetworking {
956
- $CNI_RELEASE_VERSION = ' v0.8.5'
957
958
if ((ShouldWrite- File ${env: CNI_DIR} \win-bridge.exe ) -or
958
959
(ShouldWrite- File ${env: CNI_DIR} \host-local.exe )) {
959
960
$tmp_dir = ' C:\cni_tmp'
960
961
New-Item $tmp_dir - ItemType ' directory' - Force | Out-Null
961
962
962
- $release_url = (' https://storage.googleapis.com/k8s-artifacts-cni/release%2f' +
963
- $CNI_RELEASE_VERSION + ' %2f' )
963
+ $release_url = (${env: WINDOWS_CNI_STORAGE_PATH} + ' /' + ${env: WINDOWS_CNI_VERSION} + ' /' )
964
964
$tgz_url = ($release_url +
965
- " cni-plugins-windows-amd64-$CNI_RELEASE_VERSION .tgz" )
965
+ " cni-plugins-windows-amd64-${ env: WINDOWS_CNI_VERSION} .tgz" )
966
966
$sha_url = ($tgz_url + " .sha1" )
967
967
MustDownload- File - URLs $sha_url - OutFile $tmp_dir \cni- plugins.sha1
968
968
$sha1_val = ($ (Get-Content $tmp_dir \cni- plugins.sha1) -split ' ' , 2 )[0 ]
@@ -1582,8 +1582,8 @@ function Install-LoggingAgent {
1582
1582
return
1583
1583
}
1584
1584
1585
- $url = (" https://www .googleapis.com/storage/v1/b/ gke-release/o/ winnode%2fstackdriver%2f " +
1586
- " StackdriverLogging-${STACKDRIVER_VERSION} .exe?alt=media " )
1585
+ $url = (" https://storage .googleapis.com/gke-release/winnode/stackdriver/ " +
1586
+ " StackdriverLogging-${STACKDRIVER_VERSION} .exe" )
1587
1587
$tmp_dir = ' C:\stackdriver_tmp'
1588
1588
New-Item $tmp_dir - ItemType ' directory' - Force | Out-Null
1589
1589
$installer_file = " ${tmp_dir} \StackdriverLogging-${STACKDRIVER_VERSION} .exe"
0 commit comments