From 10eb1d4d6e55b05eb06ee0e44ea87efc806b7a87 Mon Sep 17 00:00:00 2001 From: Neil Jerram Date: Thu, 3 Dec 2020 10:26:31 +0000 Subject: [PATCH] Calico: set IP=autodetect so preempted nodes learn new IP With preemptible nodes, a cluster node (with a given hostname) can boot the first time with IP1, then be preempted and boot again with different IP2. With IP="", Calico will autodetect IP1 on first boot, but will not perform autodetection on subsequent boots and so will not release IP1 and detect IP2 instead. With IP=autodetect, Calico will perform autodetection on all boots, which is what we want. --- .../addons/calico-policy-controller/calico-node-daemonset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/addons/calico-policy-controller/calico-node-daemonset.yaml b/cluster/addons/calico-policy-controller/calico-node-daemonset.yaml index 90a3dfb27d4..bb1479e18b8 100644 --- a/cluster/addons/calico-policy-controller/calico-node-daemonset.yaml +++ b/cluster/addons/calico-policy-controller/calico-node-daemonset.yaml @@ -107,7 +107,7 @@ spec: - name: USE_POD_CIDR value: "true" - name: IP - value: "" + value: "autodetect" - name: NO_DEFAULT_POOLS value: "true" - name: NODENAME