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 a array secret file
-
kind: Secret apiVersion: v1 metadata: name: <VALUE-1> namespace: kube-system type: Opaque stringData: management_address: <VALUE-2,VALUE-3> # replace with valid storage system managment address username: <VALUE-4> # replace with valid username data: password: <VALUE-5 base64> # replace with valid password - 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 kube-system - Apply the secret using the following
command:
$> kubectl apply -f array-secret.yamlThe
secret/<name> createdmessage is emitted.
- Create the secret using the following command: