Creating an array secret

Create a storage system secret in order to define the storage credentials (username and password) and address.

Use one of the following procedures to create and apply the secret:
Creating an array secret file
  1. Create the secret file.
    kind: Secret
    apiVersion: v1
    metadata:
      name:  <NAME>
      namespace: <NAMESPACE>
    type: Opaque
    stringData:
      management_address: <ADDRESS_1,ADDRESS_2> # Array management addresses
      username: <USERNAME>                      # Array username
    data:
      password: <PASSWORD base64>               # Array password
  2. Apply the secret using the following command:
    $> kubectl apply -f array-secret.yaml

    The secret/<NAME> created message is emitted.

Creating an array secret via command line
Create the secret using the following command:
kubectl create secret generic <NAME> --from-literal=username=<USER> --from-literal=password=<PASSWORD>--from-literal=management_address=<ARRAY_MGMT>  -n <namespace>