BOY
BOY

Reputation: 11

How to hide a namespace for specific user on kubernetes

I have three namespaces

And I have two users

On "prod-user", if I get namespace "kubectl get ns", I want that it's show only "prod" namespace

On "dev-user", if I get namespace "kubectl get ns", I want that it's show only "dev" and "stage" namespaces,

thanks!

Upvotes: 1

Views: 671

Answers (1)

Taimoor Mirza
Taimoor Mirza

Reputation: 1117

Use Role & RoleBinding to restrict users to specific to allow CRUD operations for a particular namespace. link

Upvotes: 0

Related Questions