Skip to content

kubectl plugin that generates tokenized Kubeconfig for your Kubernetes clusters

Notifications You must be signed in to change notification settings

vadim-zabolotniy/kubectl-kubeconfig

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubectl Kubeconfig Plugin

A kubectl plugin that generates tokenized Kubeconfig files for your Kubernetes clusters.

Installation

curl -s https://kubeconfig.jovianx.app/install | bash

Usage

Please see full list of available options by running:

kubectl kubeconfig generate --help

Generate an administrative Kubeconfig

To create Kubernetes configuration file run following command:

kubectl kubeconfig generate

You should see description of changes going to be made. To confirm further execution press y to cancel press n.

'jovianx-admin' Kubernetes service account with *CLUSTER-ADMIN* role in 'jovianx-system' namespace will be created.
Proceed? [Y/n]:

Note: that this creates a Kubernetes service account 'jovianx-admin' with CLUSTER-ADMIN role in the 'jovianx-system' namespace.

Upload configuration to JovianX Service Hub

To simplify usage of JovianX ecosystem, plugin able to upload Kubernetes configuration to JovianX Service Hub. To do that you need to provide JWT authentication token

kubectl kubeconfig generate --jwt-token=<JWT-Token>

As in generation Kubernetes configuration on file system. You will be informed about changes that going to be made:

'jovianx-admin' Kubernetes service account with *CLUSTER-ADMIN* role in 'jovianx-system' namespace will be created.
Proceed? [Y/n]:
Successfully uploaded configuration.

After successfull upload you will be informed that configuration was uploaded: Successfully uploaded configuration..

Note: that Kubernetes file configuration will not be created on you file system.

About

kubectl plugin that generates tokenized Kubeconfig for your Kubernetes clusters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%