Coder Social home page Coder Social logo

kubed's Introduction

Build Status

Kubed (Kubernetes + Dataporten)

This utility manages kubectl configuration with information about Kubernertes API server and authentication details. Kubed gets a JWT token from Dataporten enabled token issuer to be used for communication with Kubernetes cluster. If the file already present, it will merge the configuration for the obtained cluster with already present ones. Example run is

kubed -name test-cluster -api-server https://kubernetes.apiserver.com -client-id client-id-from-your-cluster -issuer https://token.issuer.com -namespace default

After successful authentication, kubed will store the credentials in $HOME/.kube/config file, by default. You can specify kubectl config file with parameter -kube-config. Now you can run your favourite kubectl commands against https://kubernetes.apiserver.com.

Kubed will also store this cluster configuration, so for JWT token renewal, you can simply run the command

kubed -renew test-cluster

Installation

To instal, run the following commands based on your operating system

For MAC OSX (amd64)

curl -LO https://github.com/UNINETT/kubed/releases/download/0.2.0/kubed-darwin-amd64 && sudo mv kubed-darwin-amd64 /usr/local/bin/kubed && sudo chmod +x /usr/local/bin/kubed

For Linux (amd64)

curl -LO https://github.com/UNINETT/kubed/releases/download/0.2.0/kubed-linux-amd64 && sudo mv kubed-linux-amd64 /usr/local/bin/kubed && sudo chmod +x /usr/local/bin/kubed

For Windows (amd64)

Download Kubed and then open cmd. On the command prompt run the following command

copy %HOMEPATH%\Downloads\kubed-windows-amd64.exe C:\Windows\System32\kubed.exe

kubed's People

Contributors

gurvindersingh avatar jondeen avatar paalka avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

kubed's Issues

Failure with Access denied when running kubed

I get the following error:

WARN[0000] Failed in saving kubedconfig open .kubedconf: Access is denied.
FATA[0000] Failed in saving kubedconfig open .kubedconf: Access is denied.

This happens running on windows without admin access.
It happens even if I override the config folder with -kube-config

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.