<p>I am looking at instructions on how to go about generating a kubeconfig file that can deploy, delete my k8s deployment to all namespaces and also have have permissions to create, delete and view secrets in all namespaces. </p>

<p>The use case for this kubeconfig is to use it in Jenkins for performing deployments to a kube cluster.</p>

<p>I am aware of k8s service accounts with role and rolebindings, however it appears they can be used to only to specific namespace(s)</p>

<p>Thanks </p>

GSM
<p>you should create cluster role and cluster role bindings to grant access cluster level. Then using the service account that has cluster level access, you should be able to do the stuff across all namespaces.</p>
