Understand Persistent Storage Installation

    1. Install Kubernetes.
    2. Install any provided add-ons.

    In the second step, an available StorageClass must be installed. It includes:

    • The StorageClass itself
    • The storage plugin for the StorageClass if necessary

    Note

    KubeKey creates a configuration file ( by default) for your cluster which contains all the necessary parameters you can define for different resources, including various add-ons. Different storage systems, such as NFS and GlusterFS, can also be installed as add-ons by Helm charts or YAML. To let KubeKey install them in the desired way, you must provide KubeKey with necessary configurations of these storage systems.

    There are generally two ways for you to let KubeKey apply configurations of the storage system to be installed.

    1. Create a separate configuration file for your add-on to list all the necessary parameters and provide the path of the file in so that KubeKey can reference it during installation.

    KubeKey supports the installation of different storage plugins and storage classes. No matter what storage systems you will be installing, you can specify whether it is a default storage class in its configuration file. If KubeKey detects that no default storage class is specified, it will install by default.

    OpenEBS Dynamic Local PV provisioner can create Kubernetes Local Persistent Volumes using a unique HostPath (directory) on the node to persist data. It is very convenient for users to get started with OpenEBS when they have no specific storage system.