kubectl create namespace <namespace name>
<token>
, it's a Kubernetes Secret typically belonging to a ServiceAccount and bound to a ClusterRole
that allows you to create namespaces.ClusterRole
should look something like this:Microservice
is implemeneted , you can just use the Client library
inside that Microservice or write a new microservice in language of your choice, and as Answered above , use a service account
with ClusterRoleBinding
that can create namespaces. and you are good to go.