Create a Kubernetes secret to keep VMS user credentials that VAST COSI Driver will use to communicate with the VAST cluster. You need to supply the name of the secret when creating the VAST COSI Driver's Helm chart configuration file.
This Kubernetes secret will be used for all bucket classes defined for the VAST COSI Driver in its Helm chart configuration file. The VAST cluster to connect is specified on the endpoint parameter in the configuration file.
Create a YAML file with the following content. Note that the VMS user's username and password must be Base64-encoded:
apiVersion: v1 kind: Secret metadata: name: <secret name> type: Opaque data: username: <VMS user's username> password: <VMS user's password>
Apply the YAML file:
kubectl apply -f <path to the YAML file>
Alternatively, you can create a secret with the following command:
kubectl create secret generic <secret name> \ --from-literal=username='<VMS user's username>' \ --from-literal=password='<VMS user's password>' \
Note
If you are creating the secret in a Kubernetes namespace that is different from the namespace used to install the VAST COSI Driver Helm chart, specify the secret's namespace on the command:
-n <secret's namespace>.