I notice that in this question they want us to update the permissions for the service account to get pods ONLY in the default namespace. I updated the permissions for the cluster role but this will allow the service account to get all pods in all namespaces in the cluster. The only way to limit the permissions to one namespace would be to change the resources to role and role bindings. I ended up getting the question correct regardless of the service account allowed to get pods in all namespaces when using cluster role and cluster role bindings.
Can someone please advise on this?
Thank you!