Hi@akhtar,
You will have to create the secret for every namespace. But you can just copy secret from one namespace to another. You need to use the below command.
$ kubectl get secret secret_name --namespace=default -oyaml | kubectl apply --namespace=dev -f -
If you are interested in knowing more about Kubernetes, then consider taking CKA Certification Course.