Skip to content

A tool that generates a kubeconfig for access to BrightAI Kubernetes clusters via Okta OIDC

Notifications You must be signed in to change notification settings

BrightDotAi/kubectl-bai-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubctl bai-config

A tool that generates a kubeconfig for access to BrightAI Kubernetes clusters via Okta OIDC. Can be installed as a kubectl plugin via krew.

Usage

$ kubectl bai-config

Installation

You can download an archive file from GitHub Releases, then extract it and install a binary.

Installation as kubectl plugin

You can also use kubectl-bai-config as kubectl plugin. The name as kubectl plugin is bai-config.

  1. Install krew that is a plugin manager for kubectl
  2. Add this repository as a custom plugin index
$ kubectl krew index add bai-config https://github.com/BrightDotAi/kubectl-bai-config.git
$ kubectl krew index list
  1. To install the plugin, run:
$ kubectl krew install bai-config/bai-config
  1. Try it out
$ kubectl bai-config
Opening browser to https://brightdotai.app.spacelift.io/cli_login?key=<REDACTED>

Waiting for login...
Done!

OIDC Authentication Details:
app_oauth_client_id: <REDACTED>
auth_server_issuer_url: <REDACTED>

Use the right arrow key or spacebar to select clusters to add to the kubeconfig:
  [ ] cluster-0
  [x] cluster-1
> [x] cluster-2
  [ ] cluster-3

Press [enter] to confirm.

Press [q] to quit.

Development: Build and Run

$ goreleaser build --single-target --snapshot --rm-dist
$ ./dist/kubectl-bai-config_darwin_arm64/kubectl-bai-config

About

A tool that generates a kubeconfig for access to BrightAI Kubernetes clusters via Okta OIDC

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages