Created
June 24, 2024 03:51
-
-
Save waynedovey/770a40ab1ad648f48f714a8e0c3e7ac0 to your computer and use it in GitHub Desktop.
Trident
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
helm repo add netapp-trident https://netapp.github.io/trident-helm-chart | |
helm repo update | |
# Create a namespace for Trident | |
kubectl create namespace trident | |
# Install the Trident operator | |
helm install trident-operator netapp-trident/trident-operator --namespace trident | |
# Create a service account | |
kubectl create serviceaccount trident-service-account -n trident | |
# Create a cluster role binding | |
kubectl create clusterrolebinding trident-service-account-binding --clusterrole=cluster-admin --serviceaccount=trident:trident-service-account | |
kubectl create secret generic ontap-secret \ | |
--namespace trident \ | |
--from-literal=backend.json='{ | |
"version": 1, | |
"storageDriverName": "ontap-nas", | |
"managementLIF": "10.0.0.1", // Management LIF of your ONTAP cluster | |
"dataLIF": "10.0.0.2", // Data LIF of your ONTAP cluster | |
"svm": "svm_name", // Storage Virtual Machine (SVM) name | |
"username": "admin", // Username to connect to the ONTAP cluster | |
"password": "password", // Password to connect to the ONTAP cluster | |
"aggregate": "aggr1", // Aggregate to use | |
"storagePrefix": "trident_", // Optional prefix for volumes created by Trident | |
"nfsMountOptions": "vers=4", // Optional NFS mount options | |
"defaults": { | |
"spaceReserve": "none", | |
"exportPolicy": "default" | |
} | |
}' | |
kubectl get tridentbackends -n trident |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment