Skip to content

Commit 2ede416

Browse files
authored
Merge pull request kubernetes#89309 from yliaog/windep
infra_container is passed in as env variable
2 parents 173b5ee + 50c0827 commit 2ede416

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

cluster/gce/config-common.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,5 @@ export WINDOWS_KUBECONFIG_FILE="${WINDOWS_K8S_DIR}\kubelet.kubeconfig"
158158
export WINDOWS_BOOTSTRAP_KUBECONFIG_FILE="${WINDOWS_K8S_DIR}\kubelet.bootstrap-kubeconfig"
159159
# Path for kube-proxy kubeconfig file on Windows nodes.
160160
export WINDOWS_KUBEPROXY_KUBECONFIG_FILE="${WINDOWS_K8S_DIR}\kubeproxy.kubeconfig"
161+
# Pause container image for Windows container.
162+
export WINDOWS_INFRA_CONTAINER="gcr.io/gke-release/pause-win:1.1.0"

cluster/gce/util.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,6 +1556,7 @@ KUBEPROXY_ARGS: $(yaml-quote ${KUBEPROXY_ARGS})
15561556
KUBECONFIG_FILE: $(yaml-quote ${WINDOWS_KUBECONFIG_FILE})
15571557
BOOTSTRAP_KUBECONFIG_FILE: $(yaml-quote ${WINDOWS_BOOTSTRAP_KUBECONFIG_FILE})
15581558
KUBEPROXY_KUBECONFIG_FILE: $(yaml-quote ${WINDOWS_KUBEPROXY_KUBECONFIG_FILE})
1559+
WINDOWS_INFRA_CONTAINER: $(yaml-quote ${WINDOWS_INFRA_CONTAINER})
15591560
EOF
15601561
}
15611562

cluster/gce/windows/k8s-node-setup.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
# - Document functions using proper syntax:
5252
# https://technet.microsoft.com/en-us/library/hh847834(v=wps.620).aspx
5353

54-
$INFRA_CONTAINER = 'gcr.io/gke-release/pause-win:1.1.0'
5554
$GCE_METADATA_SERVER = "169.254.169.254"
5655
# The "management" interface is used by the kubelet and by Windows pods to talk
5756
# to the rest of the Kubernetes cluster *without NAT*. This interface does not
@@ -249,6 +248,7 @@ function Set-EnvironmentVars {
249248
"KUBEPROXY_KUBECONFIG" = ${kube_env}['KUBEPROXY_KUBECONFIG_FILE']
250249
"LOGS_DIR" = ${kube_env}['LOGS_DIR']
251250
"MANIFESTS_DIR" = ${kube_env}['MANIFESTS_DIR']
251+
"INFRA_CONTAINER" = ${kube_env}['WINDOWS_INFRA_CONTAINER']
252252

253253
"Path" = ${env:Path} + ";" + ${kube_env}['NODE_DIR']
254254
"KUBE_NETWORK" = "l2bridge".ToLower()

0 commit comments

Comments
 (0)