diff --git a/upup/models/bindata.go b/upup/models/bindata.go index 9364524fac1d8..9be09c5e0068b 100644 --- a/upup/models/bindata.go +++ b/upup/models/bindata.go @@ -16163,15 +16163,22 @@ spec: annotations: cluster-autoscaler.kubernetes.io/safe-to-evict: 'true' spec: + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + preference: + matchExpressions: + - key: node-role.kubernetes.io/master + operator: Exists nodeSelector: kubernetes.io/os: linux - kubernetes.io/role: master hostNetwork: true tolerations: # Mark the pod as a critical add-on for rescheduling. - key: CriticalAddonsOnly operator: Exists - - key: "node-role.kubernetes.io/master" + - key: node-role.kubernetes.io/master effect: NoSchedule # Since Calico can't network a pod until Typha is up, we need to run Typha itself # as a host-networked pod. diff --git a/upup/models/cloudup/resources/addons/networking.projectcalico.org.canal/k8s-1.16.yaml.template b/upup/models/cloudup/resources/addons/networking.projectcalico.org.canal/k8s-1.16.yaml.template index 64b0f10386cb5..4c48c4eb0dab6 100644 --- a/upup/models/cloudup/resources/addons/networking.projectcalico.org.canal/k8s-1.16.yaml.template +++ b/upup/models/cloudup/resources/addons/networking.projectcalico.org.canal/k8s-1.16.yaml.template @@ -531,15 +531,22 @@ spec: annotations: cluster-autoscaler.kubernetes.io/safe-to-evict: 'true' spec: + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + preference: + matchExpressions: + - key: node-role.kubernetes.io/master + operator: Exists nodeSelector: kubernetes.io/os: linux - kubernetes.io/role: master hostNetwork: true tolerations: # Mark the pod as a critical add-on for rescheduling. - key: CriticalAddonsOnly operator: Exists - - key: "node-role.kubernetes.io/master" + - key: node-role.kubernetes.io/master effect: NoSchedule # Since Calico can't network a pod until Typha is up, we need to run Typha itself # as a host-networked pod. diff --git a/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go b/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go index b02df150f5c41..81be2328eec96 100644 --- a/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go +++ b/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go @@ -782,7 +782,7 @@ func (b *BootstrapChannelBuilder) buildAddons() *channelsapi.Addons { "k8s-1.9": "3.2.3-kops.1", "k8s-1.12": "3.7.5-kops.2", "k8s-1.15": "3.12.2-kops.1", - "k8s-1.16": "3.13.4-kops.1", + "k8s-1.16": "3.13.4-kops.2", } { id := "k8s-1.9"