Appearance
Using Ordered Storage VM with Trident and Integration into Kubernetes ​
Prerequisites ​
Make sure your Kubernetes Cluster is up and running.
You need access to the information on the ESC Portal.
Worker Node Preparation ​
Make sure the worker node can handle your chosen protocol (NFS/iSCSI)
INFO
We do not support NVMe over TCP.
Please check the detailed documentation
TIP
We recommend as a best practice to always use the latest stable version which has the format xx.xx.x, never xx.xx
For example, version 25.02.1 instead of 25.06
Configure Multipath on Linux ​
Edit the /etc/multipath.conf file and add the following configuration:
bash
sudo vim /etc/multipath.confbash
defaults {
user_friendly_names "yes"
find_multipaths "no"
failback "immediate"
}
devices {
device {
vendor "NETAPP"
product "LUN"
path_grouping_policy "group_by_prio"
features "0"
prio "ontap"
failback "immediate"
no_path_retry 1
flush_on_last_del "yes"
dev_loss_tmo "infinity"
user_friendly_names "yes"
}
}Then restart and enable the multipath service:
bash
sudo systemctl restart multipathd
sudo systemctl enable multipathdSet up Trident as Storage Driver ​
Install Trident ​
The installation for Trident can be done via manifest or Helm chart.
Please check the documentation for your preferred installation option.
Configure Trident Backend Config ​
Installing the TBC (TridentBackendConfig) is a necessary step.
Please check the documentation for more details.
Below is an example manifest:
WARNING
We recommend using the economy driver. Regular drivers have a significant limitation regarding PersistentVolume (PV) creation.
Technically speaking, a regular driver supports about 10 PVs per storage server, while the economy driver allows up to 3000 PVs per storage server. If more than 3000 PVs are Required please open a Service Request.
Example iSCSI Deployment ​
INFO
Make sure the storage server username/password and CHAP credentials for iSCSI are configured via a Kubernetes secret.
The necessary username and password are stored in the ESC Portal. The CHAP credentials need to be set, but can be freely defined by you.
yaml
apiVersion: v1
kind: Secret
metadata:
name: <storage-server-credentials>
namespace: trident
type: Opaque
stringData:
username: <username-from-portal>
password: <password-from-portal>
chapUsername: <your-chap-username>
chapInitiatorSecret: <your-chap-initiator-secret>
chapTargetUsername: <your-chap-target-username>
chapTargetInitiatorSecret: <your-chap-target-initiator-secret>yaml
apiVersion: trident.netapp.io/v1
kind: TridentBackendConfig
metadata:
name: <your-tbc-name>
namespace: trident
spec:
version: 1
backendName: <your-backend-name>
useCHAP: true
credentials:
name: <storage-server-credentials>
managementLIF: <management-ip-from-portal>
storageDriverName: ontap-san-economy
lunsPerFlexvol: "200"Example NFS Deployment ​
INFO
Make sure the storage server username/password is configured via a Kubernetes secret.
The necessary username and password are stored in the ESC Portal.
yaml
apiVersion: v1
kind: Secret
metadata:
name: <storage-server-credentials>
namespace: trident
type: Opaque
stringData:
username: <username-from-portal>
password: <password-from-portal>yaml
apiVersion: trident.netapp.io/v1
kind: TridentBackendConfig
metadata:
name: <your-tbc-name>
namespace: trident
spec:
version: 1
backendName: <your-backend-name>
credentials:
name: <storage-server-credentials>
managementLIF: <management-ip-from-portal>
storageDriverName: ontap-nas-economyDeploy StorageClass ​
Please check the documentation for more details.
WARNING
Please make sure that provisioningType is always set to "thin".
yaml
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: <your-sc-name>
provisioner: csi.trident.netapp.io
parameters:
backendType: 'ontap-<san/nas>-economy'
provisioningType: 'thin'