The following instructions describe how to install the clusterhq-flocker node
package, and the optional clusterhq-flocker-docker-plugin
package on each of the nodes in your cluster.
Before you begin to install the Flocker node services, you will need the following:
If you do not have any nodes, the following guides will help you set some up, with AWS, Rackspace, or GCE.
Note
If you set up nodes with AWS, Rackspace, or GCE, you’ll need to come back to the installation steps below to install the flocker-node
packages specific to your operating system.
Note
You should ensure your nodes are Flocker-ready, either by checking the prerequisites above, or by following our guides on using Amazon Web Services or Rackspace.
Log into the first node as root:
ssh root@<your-first-node>
Install the clusterhq-flocker-node
package:
To install clusterhq-flocker-node
on RHEL 7 you must install the RPM package provided by the ClusterHQ repository.
The commands below will install the two repositories and the clusterhq-flocker-node
package.
Run the following commands as root on the target node:
yum list installed clusterhq-release || yum install -y https://clusterhq-archive.s3.amazonaws.com/centos/clusterhq-release$(rpm -E %dist).centos.noarch.rpm sed -i 's/$releasever/7/g' /etc/yum.repos.d/clusterhq.repo yum-config-manager --enable clusterhq yum install -y clusterhq-flocker-node
Install the clusterhq-flocker-docker-plugin
package:
At this point you can choose to install the Flocker plugin for Docker. Run the following command as root on the target node:
yum install -y clusterhq-flocker-docker-plugin
Repeat the previous steps for all other nodes:
Log into your other nodes as root, and then complete step 2 and 3 until all the nodes in your cluster have installed the clusterhq-flocker-node
and the optional clusterhq-flocker-docker-plugin
package.
Note
Flocker’s container management features depend on Docker. You will need to make sure Docker (at least 1.8) is installed and running.
Note
You should ensure your nodes are Flocker-ready, either by checking the prerequisites above, or by following our guides on using Amazon Web Services, Rackspace, or Google Compute Engine.
Log into the first node as root:
ssh root@<your-first-node>
Install the clusterhq-flocker-node
package:
To install clusterhq-flocker-node
on CentOS 7 you must install the RPM package provided by the ClusterHQ repository.
The commands below will install the two repositories and the clusterhq-flocker-node
package.
Run the following commands as root on the target node:
yum list installed clusterhq-release || yum install -y https://clusterhq-archive.s3.amazonaws.com/centos/clusterhq-release$(rpm -E %dist).noarch.rpm yum install -y clusterhq-flocker-node
Install the clusterhq-flocker-docker-plugin
package:
At this point you can choose to install the Flocker plugin for Docker. Run the following command as root on the target node:
yum install -y clusterhq-flocker-docker-plugin
Repeat the previous steps for all other nodes:
Log into your other nodes as root, and then complete step 2 and 3 until all the nodes in your cluster have installed the clusterhq-flocker-node
and the optional clusterhq-flocker-docker-plugin
package.
Note
Flocker’s container management features depend on Docker. You will need to make sure Docker (at least 1.8) is installed and running.
Note
You should ensure your nodes are Flocker-ready, either by checking the prerequisites above, or by following our guides on using Amazon Web Services, Rackspace, or Google Compute Engine.
Log into the first node as root:
ssh root@<your-first-node>
Install the clusterhq-flocker-node
package:
To install clusterhq-flocker-node
on Ubuntu 16.04 you must install the package provided by the ClusterHQ repository.
The commands below will install the two repositories and the clusterhq-flocker-node
package.
Run the following commands as root on the target node:
apt-get update apt-get -y install apt-transport-https software-properties-common add-apt-repository -y "deb https://clusterhq-archive.s3.amazonaws.com/ubuntu/$(lsb_release --release --short)/\$(ARCH) /" cat <<EOF > /tmp/apt-pref Package: * Pin: origin clusterhq-archive.s3.amazonaws.com Pin-Priority: 700 EOF mv /tmp/apt-pref /etc/apt/preferences.d/buildbot-700 apt-get update apt-get -y install --force-yes clusterhq-flocker-node
Install the clusterhq-flocker-docker-plugin
package:
At this point you can choose to install the Flocker plugin for Docker. Run the following command as root on the target node:
apt-get install -y clusterhq-flocker-docker-plugin
Repeat the previous steps for all other nodes:
Log into your other nodes as root, and then complete step 2 and 3 until all the nodes in your cluster have installed the clusterhq-flocker-node
and the optional clusterhq-flocker-docker-plugin
package.
Note
You should ensure your nodes are Flocker-ready, either by checking the prerequisites above, or by following our guides on using Amazon Web Services, Rackspace, or Google Compute Engine.
Log into the first node as root:
ssh root@<your-first-node>
Install the clusterhq-flocker-node
package:
To install clusterhq-flocker-node
on Ubuntu 14.04 you must install the package provided by the ClusterHQ repository.
The commands below will install the two repositories and the clusterhq-flocker-node
package.
Run the following commands as root on the target node:
apt-get update apt-get -y install apt-transport-https software-properties-common add-apt-repository -y "deb https://clusterhq-archive.s3.amazonaws.com/ubuntu/$(lsb_release --release --short)/\$(ARCH) /" cat <<EOF > /tmp/apt-pref Package: * Pin: origin clusterhq-archive.s3.amazonaws.com Pin-Priority: 700 EOF mv /tmp/apt-pref /etc/apt/preferences.d/buildbot-700 apt-get update apt-get -y install --force-yes clusterhq-flocker-node
Install the clusterhq-flocker-docker-plugin
package:
At this point you can choose to install the Flocker plugin for Docker. Run the following command as root on the target node:
apt-get install -y clusterhq-flocker-docker-plugin
Repeat the previous steps for all other nodes:
Log into your other nodes as root, and then complete step 2 and 3 until all the nodes in your cluster have installed the clusterhq-flocker-node
and the optional clusterhq-flocker-docker-plugin
package.
Note
Flocker’s container management features depend on Docker. You will need to make sure Docker (at least 1.8) is installed and running.
The installation of the Flocker clients, node services and the Flocker plugin for Docker is now complete. To enable these services, and to configure your cluster security and backend, you must now configure Flocker: