Skip to content

a quick and dirty script to create a kubernetes user

Notifications You must be signed in to change notification settings

johnstcn/kadduser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Kubernetes add user

This is a quick and dirty script to create a kubernetes user.

Usage

./add-user.sh $USERNAME

If $USERNAME is omitted, it defaults to the name of the current user.

The script does the following:

  • Creates a 4096-bit RSA key for the user
  • Creates and approves a CSR for the user
  • Creates a namespace for the user (defaults to ${USER}-ns)
  • Creates a role+rolebinding for the user giving read-write access to all resources in the above namespace
  • Creates a kubeconfig for the user, with all certificates embedded

About

a quick and dirty script to create a kubernetes user

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages