Skip to content

Instantly share code, notes, and snippets.

@kayoch1n
kayoch1n / README.md
Last active February 21, 2026 03:54 — forked from mikamboo/README.md
Kubernetes : Create Service Account with permission for a specific namespace + Generate KUBECONFIG

Create KUBECONFIG limited to specific namespace

  • create_user_for_namespace.sh: Create $namespace-admin ServiceAccount with full access to specified namespace and get KUBECONFIG

Usage

./create-user-for-namespace YOUR_FANCY_NAMESPACE