Page MenuHomePhabricator

Upgrade Calico
Open, MediumPublic


We are currently running calico version 2.2.0. While up to now, it's been sufficient, things have progressed on the calico field as well as the kubernetes front. NetworkPolicy API is marked GA since 1.8 and calico has moved on to that and uses a different pattern in 2.4.


#105: Calico now implements the API semantics as defined by Kubernetes when using the etcd datastore
Note: This represents a change in how existing Kubernetes NetworkPolicies are enforced by Calico. To maintain existing behavior when upgrading, follow these steps:
* In Namespaces that previously did not have the “DefaultDeny” annotation, you should delete any existing NetworkPolicy objects.
* In Namespaces that previously did have the “DefaultDeny” annotation, you can create the equivalent semantics by creating a NetworkPolicy that selects all pods but does not allow any traffic. (@caseydavenport)

So this means we need to do a careful migration of the policies beforehand

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 23 2018, 10:53 PM

Change 469339 had a related patch set uploaded (by Alexandros Kosiaris; owner: Alexandros Kosiaris):
[operations/puppet@production] calico: Support version 2.4.1

jijiki triaged this task as Medium priority.Oct 25 2018, 11:46 AM
jijiki assigned this task to akosiaris.Oct 25 2018, 12:43 PM

I 've had to deannotate the zotero namespace with commands like the one below

sudo KUBECONFIG="/etc/kubernetes/admin-codfw.config" kubectl annotate namespace zotero

in all 3 clusters in order to avoid being bitten by the fact that zotero seems to require talking to the public LVS endpoints, a practice we want to eliminate as it makes it way harder for us to conduct per service failovers using DNS discovery RRs.

When we upgrade to 2.4.x calico we will be able to specify a per namespace specific egress policy and thus our current default egress will be deprecated and hence the problem will be solved.

fsero added a subscriber: fsero.
akosiaris added a parent task: Restricted Task.Feb 15 2019, 11:30 AM
jijiki moved this task from Incoming 🐫 to Unsorted on the serviceops board.Aug 17 2020, 11:48 PM
JMeybohm renamed this task from Upgrade calico in production to version 2.4+ to Upgrade Calico.Oct 20 2020, 3:14 PM
JMeybohm added a project: Prod-Kubernetes.

We packaged and deployed calico 3.16 to staging-codfw but currently we lack full IPv6 support due to the fact that we now require kubernetes to dual-stack/IPv6 enabled as well (as we run calico with kubernetes datastore backend).