Curious what the error was, always good to share as part of the posts. Sometimes the issue is as simple as not having the correct indentation, namely “imagePullSecrets” should fall under the “spec” object.
I took your code and modified as follows to make it work (replace “_” with " ")
ibmcloud cr namespaces
think-tank-lab_dev ( Repository name )
I have namespace
think-tank-lab
My requirement is to create pod under think-tank-lab namespace
I did not understand where should I put namespace attribute so that pod will create under think-tank-lab namespce.