Tag Archives: namespace

[K8s] Kubernetes – restrict user access to one namespace

In this example, we will create dev namespace and token for access this namespace only Create Namespace kubectl create namespace dev Create Service Account with permissions Create file permission-dev-namespace.yaml with content: — apiVersion: v1 kind: ServiceAccount metadata: name: dev-user namespace: dev — kind: Role apiVersion: rbac.authorization.k8s.io/v1 metadata: name: dev-user-full-access namespace: dev rules: – apiGroups: [“”, […]

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.