I have an issue with creating namespaces, serviceaccounts, roles, rolebindings and kubeconfig files.
In the future we will have multiple teams/ applications landing on Kubernetes and I want to create a namespace per team. We are using Kubernetes on Azure (AKS) and the default created kubeconfig is not something to just handover to all teams. So I thought I would create a serviceaccount per namespace and create a role + rolebinding. So I tried it locally with minikube.
I first created the resources:
And then I created the config file for the serviceaccount:
But with this config file I can still see all resources in all namespaces and I cannot figure out what I am doing wrong. Hopefully someone can help me out.
Kind regards, Bram