Installation From SourceΒΆ

If for some reason you do not want to run Cilium as a container image. Installing it from source is possible as well. It does come with additional dependencies described in System Requirements.

  1. Requirements:

Install go-bindata:

$ go get -u github.com/jteeuwen/go-bindata/...

Add $GOPATH/bin to your $PATH:

$ # To add $GOPATH/bin in your $PATH run
$ export PATH=$GOPATH/bin:$PATH

You can also add it in your ~/.bashrc file:

if [ -d $GOPATH/bin ]; then
    export PATH=$PATH:$GOPATH/bin
fi
  1. Download & extract the latest Cilium release from the ReleasesPage
$ go get -d github.com/cilium/cilium
$ cd $GOPATH/src/github.com/cilium/cilium
  1. Build & install the Cilium binaries to bindir
$ git checkout v0.11
$ # We are pointing to $GOPATH/bin as well since it's where go-bindata is
$ # installed
$ make
$ sudo make install
  1. Optional: Install upstart/systemd init files:
sudo cp contrib/upstart/* /etc/init/
service cilium start

sudo cp contrib/systemd/*.service /lib/systemd/system
sudo cp contrib/systemd/sys-fs-bpf.mount /lib/systemd/system
sudo mkdir -p /etc/sysconfig/cilium && cp contrib/systemd/cilium /etc/sysconfig/cilium
service cilium start