Operator
Operator Installation
To deploy the Operator, follow the instructions available here.
Prerequisites
-
Create namespace:
kubectl create namespace unity
This command creates a namespace called
unity
. You can replaceunity
with any name you prefer. -
Create or Use Sample
secret.yaml
File.Create a file called
secret.yaml
or pick a sample that has Unity array connection details:storageArrayList: - arrayId: "APM00******1" # unique array id of the Unisphere array username: "user" # username for connecting to API password: "password" # password for connecting to API endpoint: "https://10.1.1.1/" # full URL path to the Unity XT API skipCertificateValidation: true # indicates if client side validation of (management)server's certificate can be skipped isDefault: true # treat current array as a default (would be used by storage classes without arrayID parameter)
Change the parameters with relevant values for your Unity XT array. Add more blocks similar to above for each Unity XT array if necessary.
-
Create Kubernetes secret:
Use the following command to create a new secret unity-creds from
secret.yaml
file.kubectl create secret generic unity-creds -n unity --from-file=config=secret.yaml
Use the following command to replace or update the secret:
kubectl create secret generic unity-creds -n unity --from-file=config=secret.yaml -o yaml --dry-run | kubectl replace -f -
Install Driver
-
Create a CR (Custom Resource) for PowerFlex using the sample files provided
a. Default Configuration: Use the sample file for default settings. Modify if needed.
[OR]
b. Detailed Configuration: Use the sample file for detailed settings.
-
Users should configure the parameters in CR. The following table lists the primary configurable parameters of the Unity XT driver and their default values:
-
Execute the following command to create Unity XT custom resource:
kubectl create -f <input_sample_file.yaml>
This command will deploy the CSI Unity XT driver in the namespace specified in the input YAML file.
- Next, the driver should be installed, you can check the condition of driver pods by running
kubectl get all -n <driver-namespace>
- Next, the driver should be installed, you can check the condition of driver pods by running
-
Once the driver
Custom Resource (CR)
is created, you can verify the installation as mentioned below- Check if ContainerStorageModule CR is created successfully using the command below:
kubectl get csm/<name-of-custom-resource> -n <driver-namespace> -o yaml
- Check the status of the CR to verify if the driver installation is in the
Succeeded
state. If the status is notSucceeded
, see the Troubleshooting guide for more information.
- Check if ContainerStorageModule CR is created successfully using the command below:
-
Refer Volume Snapshot Class and Storage Class for the sample files.
Note :
- “Kubelet config dir path” is not yet configurable in case of Operator based driver installation.
- Snapshotter and resizer sidecars are not optional. They are defaults with Driver installation.