A tool that generates a kubeconfig for access to BrightAI Kubernetes clusters via Okta OIDC.
Can be installed as a kubectl
plugin via krew
.
$ kubectl bai-config
You can download an archive file from GitHub Releases, then extract it and install a binary.
You can also use kubectl-bai-config as kubectl plugin. The name as kubectl plugin is bai-config
.
- Install krew that is a plugin manager for kubectl
- 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
- To install the plugin, run:
$ kubectl krew install bai-config/bai-config
- 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.
$ goreleaser build --single-target --snapshot --rm-dist
$ ./dist/kubectl-bai-config_darwin_arm64/kubectl-bai-config