This section describes how to install the configuration files for
the MapR Data Fabric for Kubernetes. In this configuration, MapR and Kubernetes software can
coexist on the same nodes if certain version requirements are met.
Important: Some versions of the MapR Data Fabric for Kubernetes do not support
installing MapR and Kubernetes software on the same nodes. To ensure that you are using a
version that supports this feature, see the
MapR Data Fabric for Kubernetes release
notes.
Before Installation
Before installing the MapR Data Fabric for Kubernetes, note these preinstallation
requirements:
- This procedure assumes that the Kubernetes cluster is already installed and
functioning normally.
- Ensure that all Kubernetes nodes use the same Linux distribution. For example, all
nodes can be CentOS nodes, or all nodes can be Ubuntu nodes. But a cluster with a
mixture of CentOS and Ubuntu nodes is not supported.
- This procedure requires stopping Warden and Zookeeper on all nodes in the MapR cluster
and then restarting Warden and Zookeeper on all nodes. The steps cannot be performed
online one node at a time.
- Do not install the MapR client on a node where the volume plug-in configuration file
is installed. The MapR client can be installed on a node in the Kubernetes cluster, but
it must be installed before the MapR Data Fabric for Kubernetes is installed on
the same Kubernetes cluster.
CAUTION:
Do not try to install the volume plug-in without following the
steps below. Doing so can cause MapR libraries to be overwritten.
Install the MapR 6.0.1 or Later Cluster on the Kubernetes Nodes
Use any of the methods described in Installing with the Installer to install
a MapR 6.0.1 or later cluster on the existing Kubernetes nodes.
Install the MapR Data Fabric for Kubernetes
Use these steps to install the MapR Data Fabric for Kubernetes on the Kubernetes
cluster:
- Stop all running jobs on the MapR cluster.
- Stop Warden on all MapR cluster nodes by running the following command on each
node:
service mapr-warden stop
- Stop Zookeeper on all MapR Zookeeper nodes by running the following command on each
node:
service mapr-zookeeper stop
- Deploy the MapR Data Fabric for Kubernetes components by using steps 1 through 6 of
Installing MapR and Kubernetes Software on Separate Nodes.
- Configure the
MAPR_SUBNETS environment variable to ensure that MapR
software does not use the docker0 network interface on each node. See
Designating NICs for HPE Ezmeral Data Fabric.If
MAPR_SUBNETS is not set, the CLDB uses all NICs present on the
node. When Docker is installed on a node, thedocker0 bridge is
created as a virtual NIC for use by the Docker containers. You must configure the
MAPR_SUBNET setting to include the physical NICs that you want the
CLDB to use and exclude the docker0 network interface. In this
way, you can avoid issues with duplicate or non-routable IP addresses. For more
information about docker0, see Docker container networking.
- Start Zookeeper on all MapR Zookeepr nodes by running the following command on each
node:
service mapr-zookeeper start
- Start Warden on all MapR cluster nodes by running the following command on each
node:
service mapr-warden start