mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Disable GCE agent address management on Windows nodes.
With this metadata key set, "GCEWindowsAgent: GCE address manager status: disabled" will appear in the VM's serial port output during boot. Tested: PROJECT=${CLOUDSDK_CORE_PROJECT} KUBE_GCE_ENABLE_IP_ALIASES=true NUM_WINDOWS_NODES=2 NUM_NODES=2 KUBERNETES_NODE_PLATFORM=windows go run ./hack/e2e.go -- --up cluster/gce/windows/smoke-test.sh cat > iis.yaml <<EOF apiVersion: v1 kind: Pod metadata: name: iis labels: app: iis spec: containers: - image: mcr.microsoft.com/windows/servercore/iis imagePullPolicy: IfNotPresent name: iis-server ports: - containerPort: 80 protocol: TCP nodeSelector: beta.kubernetes.io/os: windows tolerations: - effect: NoSchedule key: node.kubernetes.io/os operator: Equal value: windows1809 EOF kubectl create -f iis.yaml kubectl expose pod iis --type=LoadBalancer --name=iis kubectl get services curl http://<service external IP address>
This commit is contained in:
parent
91f40aec8a
commit
1814b0c495
@ -36,6 +36,10 @@ function get-windows-node-instance-metadata-from-file {
|
||||
function get-windows-node-instance-metadata {
|
||||
local metadata=""
|
||||
metadata+="k8s-version=${KUBE_VERSION:-v1.13.2},"
|
||||
# Prevent the GCE Windows agent from managing IP addresses, since kube-proxy
|
||||
# and these cluster setup scripts should take care of everything. See
|
||||
# https://github.com/kubernetes/kubernetes/issues/75561.
|
||||
metadata+="disable-address-manager=true,"
|
||||
metadata+="serial-port-enable=1,"
|
||||
# This enables logging the serial port output.
|
||||
# https://cloud.google.com/compute/docs/instances/viewing-serial-port-output
|
||||
|
Loading…
Reference in New Issue
Block a user