Giter Site home page Giter Site logo

k8s-users's Introduction

k8s-users

A script to manage users as service accounts to a kubernetes cluster

Description:

    With this script you can easily create user accounts to a kubernetes cluster.
    Pre-requests are:
     - kubectl tool installed with admin account configured.

    This tool does not create the cluster roles in the cluster,it assumes that
    they have already been created by admin.
    It currently uses 5 roles:
     - cluster-admin (Full access everywhere) [build-in]
     - admin (Namespace admin) [build-in]
     - user (Read only access) [build-in]
     - release-manager(Read only access,but can delete pods) [custom]
 - deployer(Can do deployments, cicd oriented) [custom]

Usage:

    Create a normal user named "john" to a namespace named "doe":
    - ./k8s-users.sh create john doe user 

    Create an admin user named "john" to a namespace named "doe":
    - ./k8s-users.sh create john doe admin
            
    Create a release-manager user named "john" to a namespace named "doe":
    - ./k8s-users.sh create john doe release-manager

    Create a deploy user name "john" to a namespace  named "doe":
    - ./k8s-users.sh create john doe deployer

    You can also create a user named "john" which has access to multiple namespaces passing
    the extra namespaces as arguments at the end.
    - ./k8s-users.sh create john namespace1 user namespace2 namespace3

    Create a cluster admin user named "john" namespace is not actualy used but needed to be there so "doe":
    - ./k8s-users.sh create john doe k8scadmin 

    To delete a user named "john" to a namespace named "doe":
    - ./k8s-users.sh delete john doe

    You can also create user config file for existing user "john" of namespace "doe" as:
    - ./k8s-users.sh config john doe

BEWARE

Some roles you have to create them by your self on your cluster

k8s-users's People

Contributors

akazantzidis avatar

Stargazers

AV avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.