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

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
  1. Download & extract the latest Cilium release from the ReleasesPage
$ go get -d
$ cd $GOPATH/src/
  1. Build & install the Cilium binaries to bindir
$ git checkout v1.1.0
$ # We are pointing to $GOPATH/bin as well since it's where go-bindata is
$ # installed
$ make build
$ sudo make install
  1. Optional: Install systemd init files:
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