How I create new namespace in Kubernetes

后端 未结 3 573
星月不相逢
星月不相逢 2021-02-03 20:44

I work in a multi-tenant node app, I know to create a new namespace in Kubernetes is possible to run a kubectl command as follow: kubectl create namespace

3条回答
  •  灰色年华
    2021-02-03 21:17

    Depends on the language in whcih your 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.

    Client Libraries here:

    • Python
    • Go
    • Java
    • Javascript

提交回复
热议问题