From 9747918ce3677bcb2aada3b6a786c2349a5d55d5 Mon Sep 17 00:00:00 2001 From: mikesplain Date: Fri, 27 Sep 2019 12:59:09 -0400 Subject: [PATCH] Add calico 3.9.1 --- .../k8s-1.12.yaml.template | 25 ++++++++++--------- .../pkg/fi/cloudup/bootstrapchannelbuilder.go | 2 +- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/upup/models/cloudup/resources/addons/networking.projectcalico.org/k8s-1.12.yaml.template b/upup/models/cloudup/resources/addons/networking.projectcalico.org/k8s-1.12.yaml.template index 6c3139533c587..ead19b14b9ae3 100644 --- a/upup/models/cloudup/resources/addons/networking.projectcalico.org/k8s-1.12.yaml.template +++ b/upup/models/cloudup/resources/addons/networking.projectcalico.org/k8s-1.12.yaml.template @@ -1,5 +1,5 @@ --- -# Pulled and modified from: https://docs.projectcalico.org/v3.8/manifests/calico-typha.yaml +# Pulled and modified from: https://docs.projectcalico.org/v3.9/manifests/calico-typha.yaml # Source: calico/templates/calico-config.yaml # This ConfigMap is used to configure a self-hosted Calico installation. @@ -430,6 +430,7 @@ rules: - networksets - clusterinformations - hostendpoints + - blockaffinities verbs: - get - list @@ -577,7 +578,7 @@ spec: serviceAccountName: calico-node priorityClassName: system-cluster-critical containers: - - image: calico/typha:v3.8.2 + - image: calico/typha:v3.9.1 name: calico-typha ports: - containerPort: 5473 @@ -693,7 +694,7 @@ spec: # It can be deleted if this is a fresh installation, or if you have already # upgraded to use calico-ipam. - name: upgrade-ipam - image: calico/cni:v3.8.2 + image: calico/cni:v3.9.1 command: ["/opt/cni/bin/calico-ipam", "-upgrade"] env: - name: KUBERNETES_NODE_NAME @@ -713,7 +714,7 @@ spec: # This container installs the CNI binaries # and CNI network config file on each node. - name: install-cni - image: calico/cni:v3.8.2 + image: calico/cni:v3.9.1 command: ["/install-cni.sh"] env: # Name of the CNI config file to create. @@ -747,7 +748,7 @@ spec: # Adds a Flex Volume Driver that creates a per-pod Unix Domain Socket to allow Dikastes # to communicate with Felix over the Policy Sync API. - name: flexvol-driver - image: calico/pod2daemon-flexvol:v3.8.2 + image: calico/pod2daemon-flexvol:v3.9.1 volumeMounts: - name: flexvol-driver-host mountPath: /host/driver @@ -756,7 +757,7 @@ spec: # container programs network policy and routes on each # host. - name: calico-node - image: calico/node:v3.8.2 + image: calico/node:v3.9.1 env: # Use Kubernetes API as the backing datastore. - name: DATASTORE_TYPE @@ -822,10 +823,10 @@ spec: requests: cpu: 90m livenessProbe: - httpGet: - path: /liveness - port: 9099 - host: localhost + exec: + command: + - /bin/calico-node + - -felix-live periodSeconds: 10 initialDelaySeconds: 10 failureThreshold: 6 @@ -833,8 +834,8 @@ spec: exec: command: - /bin/calico-node - - -bird-ready - -felix-ready + - -bird-ready periodSeconds: 10 volumeMounts: - mountPath: /lib/modules @@ -941,7 +942,7 @@ spec: priorityClassName: system-cluster-critical containers: - name: calico-kube-controllers - image: calico/kube-controllers:v3.8.2 + image: calico/kube-controllers:v3.9.1 env: # Choose which controllers to run. - name: ENABLED_CONTROLLERS diff --git a/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go b/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go index b63c85632bcd3..aa2619d30e88f 100644 --- a/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go +++ b/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go @@ -807,7 +807,7 @@ func (b *BootstrapChannelBuilder) buildAddons() *channelsapi.Addons { "k8s-1.6": "2.6.9-kops.1", "k8s-1.7": "2.6.12-kops.1", "k8s-1.7-v3": "3.8.0-kops.1", - "k8s-1.12": "3.8.2-kops.2", + "k8s-1.12": "3.9.1-kops.1", } {