Code Monkey home page Code Monkey logo

kubetoken's Introduction

kubetoken

Build Status

Synopsis

kubetoken issues temporary certificates for access to Kubernetes clusters.

Build

run make build_container in Project directory

This will build a Container which can be started with make start_container with kubetokend inside running on 48080

Also, in this Container there is the Client kubetoken to connect to kubetokend

Building with -f Dockerfile-debianbuild creates a debian:jessie Container with .deb Packages in the workdir. They can be copied with docker cp ://*.deb /tmp

Building with -f Dockerfile-buildFromGithub gets recent Version from github an build the binaries to the Container

Installation

Installation is covered in a seperate document.

Deployment

Deploying kubetoken involves two steps.

  1. deploying kubetokend as a kubernetes service
  2. distributing the kubetoken cli tool.

Usage

use kubetoken Client with --host poiting to the kubetokend server

the kubetoken --help Flag will Print Basic Usage.

kubetoken client will edit the ~/.kube/config with the proper Cluster Contexts for the chosen User

After kubetoken login one can view the Cluster Contexts configured with

kubectl config get-contexts

and Switch between them with

kubectl config use-context <contextname>

Full Usage:

usage: kubetoken [<flags>]

Flags:
      --help                  Show context-sensitive help (also try --help-long and --help-man).
  -v, --verbose               talk
  -j, --json                  dump json
  -u, --user="j.schueppel"    StaffID username. Default: $USER
      --kubeconfig="/root/.kube/config"  
                              kubeconfig location. Default: $HOME/.kube/config
      --version               print version string and exit.
  -f, --filter=FILTER         only show matching roles.
  -n, --namespace=NAMESPACE   override namespace.
  -h, --host=""               kubetokend hostname. Default: $KUBETOKEN_SSO_AUTH_URL
  -P, --password=""           password. Default: $KUBETOKEN_PW
      --password-prompt       prompt for password (replaces current password in keyring)
      --skip-keyring          skip usage of the keyring
  -k, --no-check-certificate  Skip Certificate Verify Default: $KUBETOKEN_NO_CHECK_CERTIFICATE

Contributing

Pull requests, issues and comments welcome. For pull requests:

  • Do not submit a pull request without an accompanying issue. All pull requests must include an Updates or Fixes line.
  • Add tests for new features and bug fixes.
  • Follow the existing style.
  • Separate unrelated changes into multiple pull requests.

See the existing issues for things to start contributing.

For bigger changes, make sure you start a discussion first by creating an issue and explaining the intended change.

Atlassian requires contributors to sign a Contributor License Agreement, known as a CLA. This serves as a record stating that the contributor is entitled to contribute the code/documentation/translation to the project and is willing to have it used in distributions and derivative works (or is willing to transfer ownership).

Prior to accepting your contributions we ask that you please follow the appropriate link below to digitally sign the CLA. The Corporate CLA is for those who are contributing as a member of an organization and the individual CLA is for those contributing as an individual.

License

Copyright (c) 2017 Atlassian and others. MIT licensed, see LICENSE file.

kubetoken's People

Contributors

atze234 avatar davecheney avatar dcheney-atlassian avatar evanbyatt avatar fhemberger avatar georgebarnett 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.