Binary install with package manager
Prerequisites
Installing Felix
There are several ways to install Felix.
-
If you are running Ubuntu 14.04 or 16.04, you can install from our PPA:
sudo add-apt-repository ppa:project-calico/master sudo apt-get update sudo apt-get upgrade sudo apt-get install calico-felix
-
If you are running a RedHat 7-derived distribution, you can install from our RPM repository:
cat > /etc/yum.repos.d/calico.repo <<EOF [calico] name=Calico Repository baseurl=http://binaries.projectcalico.org/rpm/master/ enabled=1 skip_if_unavailable=0 gpgcheck=1 gpgkey=http://binaries.projectcalico.org/rpm/master/key priority=97 EOF yum install calico-felix
Until you initialize the database, Felix will make a regular log that it
is in state “wait-for-ready”. The default location for the log file is
/var/log/calico/felix.log
.
Initializing the etcd database
You should configure a node
resource for each
host running Felix. In this case, the database is initialized after
creating the first node
resource. For a deployment that does not include
the Calico/BGP integration, the specification of a node resource just
requires the name of the node; for most deployments this will be the same as the
hostname.
calicoctl create -f - <<EOF
- apiVersion: projectcalico.org/v3
kind: Node
metadata:
name: <node name or hostname>
EOF
The Felix logs should transition from periodic notifications
that Felix is in the state wait-for-ready
to a stream of initialization
messages.