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> # replace with valid storage system management address
       username: <USERNAME>                       # replace with valid username
    data:
       password: <PASSWORD base64>                 # replace with base64 encoding of  valid  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>