Page MenuHomePhabricator

Upgrade calico to 2.2, document build process.
Closed, ResolvedPublic

Description

At the moment, we are using remotely-built calico containers for kubernetes, because our previous attempt to port calico-node to work to debian was overall a failure.

We need to perfect and correctly manage the build system, and upgrade all components to calico 2.2, documenting clearly the build process while doing that.

The components we need to build are (from http://docs.projectcalico.org/v2.2/releases/):

  • calico/node (docker image) and calicoctl 1.2.0 from calico-containers; This needs the addition of the debian directory and fixing of Dockerfiles, not sure how to proceed
  • The calico-cni 1.8.3 debian package, from calico-cni (via our own repository, via gbp)
  • The calico-k8s-policy-controller 0.6.0 docker image; in this case, we're probably better off just reverting to use the base repository and scripting (for now) changing the FROM statement in dockerfiles.
  • the base cni binaries, version 0.3.0; we didn't even begin doing it before.

Event Timeline

I am re-doing our calico-containers repository from scratch, importing a version from upstream and managing the now-minimal changes to the Dockerfiles with quilt. This will make it easier to build calicoctl (the debian package) properly.

Also, calico uses alpine 3.4; we need to make build-base-images to be able to build a specific alpine version.

Change 353275 had a related patch set uploaded (by Giuseppe Lavagetto; owner: Giuseppe Lavagetto):
[operations/puppet@production] docker::baseimages: separate build script for alpine linux

https://gerrit.wikimedia.org/r/353275

Change 353275 merged by Giuseppe Lavagetto:
[operations/puppet@production] docker::baseimages: separate build script for alpine linux

https://gerrit.wikimedia.org/r/353275

Joe renamed this task from Upgrade calico to 2.1, document build process. to Upgrade calico to 2.2, document build process..May 15 2017, 9:51 AM
Joe updated the task description. (Show Details)

Change 353845 had a related patch set uploaded (by Giuseppe Lavagetto; owner: Giuseppe Lavagetto):
[operations/puppet@production] profile::calico::builder: use calico release info

https://gerrit.wikimedia.org/r/353845

Change 353845 merged by Giuseppe Lavagetto:
[operations/puppet@production] profile::calico::builder: use calico release info

https://gerrit.wikimedia.org/r/353845

Change 353857 had a related patch set uploaded (by Giuseppe Lavagetto; owner: Giuseppe Lavagetto):
[operations/calico-cni@master] Add debian/repack to ease the upgrade process

https://gerrit.wikimedia.org/r/353857

Change 353857 merged by Giuseppe Lavagetto:
[operations/calico-cni@master] Add debian/repack to ease the upgrade process

https://gerrit.wikimedia.org/r/353857

Change 355392 had a related patch set uploaded (by Giuseppe Lavagetto; owner: Giuseppe Lavagetto):
[operations/puppet@production] calico: add new version 2.2.0

https://gerrit.wikimedia.org/r/355392

Change 355393 had a related patch set uploaded (by Giuseppe Lavagetto; owner: Giuseppe Lavagetto):
[operations/puppet@production] role::kubernetes::worker: upgrade calico on one host

https://gerrit.wikimedia.org/r/355393

Change 355394 had a related patch set uploaded (by Giuseppe Lavagetto; owner: Giuseppe Lavagetto):
[operations/puppet@production] role::kubernetes::worker: upgrade calico everywhere

https://gerrit.wikimedia.org/r/355394

Change 355392 merged by Giuseppe Lavagetto:
[operations/puppet@production] calico: add new version 2.2.0

https://gerrit.wikimedia.org/r/355392

Change 355393 merged by Alexandros Kosiaris:
[operations/puppet@production] role::kubernetes::worker: upgrade calico on one host

https://gerrit.wikimedia.org/r/355393

Change 355394 merged by Alexandros Kosiaris:
[operations/puppet@production] role::kubernetes::worker: upgrade calico everywhere

https://gerrit.wikimedia.org/r/355394