In this blog, I am going to explain how to deploy an application in a custom Rancher cluster on an OpenEBS volume. OpenEBS is a leading open source storage platform that provides persistent and containerized block storage for DevOps and container environments. Rancher is enterprise management for Kubernetes. Before you begin please make sure all the prerequisites are met.

Node Requirements:

Ubuntu 16.04(64-bit)

4 vCPUS and 16 GB RAM

Docker 17.03.2

Prerequisites:

Rancher UI installed and running.

After docker installation, I used the below command to install Rancher. For more information on installing Rancher, you can visit Rancher docs at https://rancher.com/docs/rancher/v2.x/en/

docker run -d --restart=unless-stopped \ -p 8080:80 -p 8443:443 \ rancher/rancher:latest

Minimum of 1 master and 3 worker

(Optional) 6 nodes for the cluster ( 3 master and 3 workers)

iSCSI services on different Operating System:

Step1: Verify iSCSI initiator is installed and services are running

Step2: Add extra_binds under kubelet service in cluster YAML

After installing the initiator tool on your nodes, edit the YAML for your cluster, editing the kubelet configuration to mount the iSCSI binary and configuration, as shown in the sample below.

services:

kubelet:

extra_binds:

- "/etc/iscsi:/etc/iscsi"

- "/sbin/iscsiadm:/sbin/iscsiadm"

- "/var/lib/iscsi:/var/lib/iscsi"

- "/lib/modules"

Load iscsi_tcp module:

If the node does not start the iscsi_tcp service and then OpenEBS …

Read the complete article in MayaData’s Blog