This section describes how to install the configuration files for the MapR Data Fabric for Kubernetes. In this configuration, MapR and Kubernetes software must be installed on separate nodes.
To install the MapR Data Fabric for Kubernetes, you must download the configuration files and
use the Kubernetes kubectl interface to install the namespace, RBAC, plug-in,
and provisioner .yaml files.
.yaml) files from
https://package.mapr.com/tools/KubernetesDataFabric/v<version>/ to a
directory on a node in the Kubernetes cluster:
| File | Description |
|---|---|
kdf-namespace.yaml |
Configuration file for the mapr-system namespace, under
which all MapR components are installed. |
kdf-rbac.yaml |
RBAC configuration file. This file enables the provisioner to call the Kubernetes APIs that it needs to function. |
|
Configuration files used to install the plug-in. Download the plug-in file that matches your environment. You can use the CentOS configuration file for Red Hat, CentOS, or SUSE Kubernetes hosts. |
kdf-provisioner.yaml |
Configuration file used to install the provisioner inside the Kubernetes cluster. |
1Before installing the
kdf-plugin-azure.yaml, see Azure AKS Considerations.
2To
install the kdf-plugin-openshift.yaml, see OpenShift Considerations.
3To
install the kdf-plugin-gke.yaml, see Google Kubernetes Engine (GKE) Considerations.
kubectl create command with the
-f option to create the namespace for the plug-in and
provisioner:kubectl create command from the directory containing the downloaded
configuration
files.kubectl create -f kdf-namespace.yamlkubectl create command with the
-f option to install the RBAC file:kubectl create -f kdf-rbac.yamlkubectl config view and looking at the
current context and then looking at the cluster selected for that context. This
information is used to look up
tickets:- name : KUBERNETES_SERVICE_LOCATION
value: "changeme!:6443"value:
field:- name : FLEXVOLUME_PLUGIN_PATH
value: "/usr/libexec/kubernetes/kubelet-plugins/volume/exec"kubectl create command with the -f option to
install the plug-in. The plug-in that you specify in the create command
depends on your operating system environment: kubectl
create -f command, a daemon set copies the plug-in to every node in the
Kubernetes
cluster.kubectl create -f kdf-plugin-centos.yamlor
kubectl create -f kdf-plugin-ubuntu.yamlor
kubectl create -f kdf-plugin-azure.yamlor
kubectl create -f kdf-plugin-openshift.yamlor
kubectl create -f kdf-plugin-gke.yamlkubectl create command with the
-f option to install the provisioner on a single node of the
Kubernetes cluster. Kubernetes determines the node on which to install the
provisioner.kubectl create -f kdf-provisioner.yaml