项目作者: gyselroth

项目描述 :
A client-go credentials plugin for kube-ldap
高级语言: JavaScript
项目地址: git://github.com/gyselroth/kube-ldap-client-go-exec-plugin.git
创建时间: 2019-06-14T12:04:30Z
项目社区:https://github.com/gyselroth/kube-ldap-client-go-exec-plugin

开源协议:MIT License

下载


kube-ldap-client-go-exec-plugin

Build Status
License: MIT

A client-go credentials plugin for kube-ldap, written in javascript.

Description

The kube-ldap-client-go-exec-plugin can be used to integrate kube-ldap-authentication in your kubectl.
Whenever kubectl is invoked with a context configured to use this plugin, the plugin asks for username and password to get a kube-ldap-token and stores this token together with the tokens expiry date.
On subsequent invocations of kubectl the cached token is used unless the token is expired or rejected by the kubernetes apiserver (in which case it asks for username and password again).

Installation

Download the latest version of this plugin from the releases page for your OS, rename it to kube-ldap-client-go-exec-plugin and place it in an executable path for your OS.
E.g.:

  • Linux/OS X: /usr/local/bin
  • Windows: c:\windows\system32

Configuration

To make use of this plugin, alter the credentials of your context in your kubeconfig to use this plugin for authentication together with the corresponding url to your kube-ldap installation.
E.g.:

  1. [...]
  2. users:
  3. - name: your-cluster-kube-ldap
  4. user:
  5. exec:
  6. command: kube-ldap-client-go-exec-plugin
  7. args:
  8. - "https://your-kube-ldap-url"
  9. apiVersion: "client.authentication.k8s.io/v1alpha1"