This PR improves the ISCSI installation functionality where going forward,
all the OpenEBS components and the components to setup ISCSI client will be
installed at the same time.
Once installed, components created for setting up ISCSI client will be deleted.
It also adds initContainers to CSI node component which checks if ISCSI client is
installed or not,
NOTE: In case of the addition of a new node, users need to edit OpenEBS CR(kubectl edit openebs -n openebs) and change the value of .spec.preInstallation.iscsiClient.isSetupDone to false and .spec.preInstallation.iscsiClient.Enabled to true if not already set to true.
An example OpenEBS CR is given below:
apiVersion: dao.mayadata.io/v1alpha1
kind: OpenEBS
metadata:
name: install-openebs-1.9.0
# Namespace i.e. the namespace where the openebs-upgrade operator and the
# other openebs components will be installed/needs-to-be-installed.
namespace: openebs
labels:
name: openebs-upgrade
spec:
# OpenEBS Version to be installed.
version: "1.9.0"
# The components/tools/dependencies to be installed prior to OpenEBS components
# installation.
preInstallation:
# iscsiClient contains configuration for ISCSI client installation.
iscsiClient:
# enabled: true means it should be installed.
#
# Defaults to true.
enabled: true
# This field denotes if the setup has already been done or not.
# User can use this field to run client setup once again if required in case of
# new node addition or so.
#
# Defaults to false.
isSetupDone: true
This PR improves the ISCSI installation functionality where going forward, all the OpenEBS components and the components to setup ISCSI client will be installed at the same time. Once installed, components created for setting up ISCSI client will be deleted. It also adds initContainers to CSI node component which checks if ISCSI client is installed or not,
NOTE: In case of the addition of a new node, users need to edit OpenEBS CR(
kubectl edit openebs -n openebs
) and change the value of.spec.preInstallation.iscsiClient.isSetupDone
tofalse
and.spec.preInstallation.iscsiClient.Enabled
totrue
if not already set totrue
.An example OpenEBS CR is given below:
Signed-off-by: sagarkrsd sagar.kumar@mayadata.io