Hi@akhtar,
Secrets can contain user credentials required by Pods to access a database. For example, a database connection string consists of a username and password. You can store the username in a file ./username.txt and the password in a file ./password.txt on your local machine.
$ echo -n 'nadeem' > ./username.txt
$ echo -n 'redhat' > ./password.txt
The kubectl create secret command packages these files into a Secret and creates the object on the API server.
$ kubectl create secret generic db-user-pass --from-file=./username.txt --from-file=./password.txt