kube-lock

command module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

kube-lock

Now Available as a Krew Plugin! See below for install steps

kube-lock-demo

A pane of glass between you and your Kubernetes clusters.

  • Sits as an intermediary between you and kubectl, allowing you to lock and unlock contexts.
  • Prevents misfires to production / high-value Kubernetes clusters that you might have strong IAM privileges on.
  • Supports custom 'Profiles', allowing you to restrict certain verbs from being passed to high-value clusters.

If you wish to build it and try it out though, you can do one of the following:

install as a Krew plugin!

  1. install Krew if you don't already have it
  2. run kubectl krew index add kube-lock https://github.com/chaosinthecrd/kube-lock.git to add this repository as a Krew index (this is a temporary step while the plugin is getting accepted to the upstream index)
  3. install the plugin with kubectl krew install kube-lock/lock
  4. create an alias in your .bashrc or .zshrc like: alias kubectl="kubectl-lock kubectl --"
  5. From here, you can use kube-lock by calling kubectl lock followed by the subcommand you wish to use (e.g., kubectl lock lock)

install manually

  1. run go build -o="kubectl-lock" . in the root of the repo, or download from the Github Releases page.
  2. copy the produced binary into somewhere within your path
  3. create an alias in your .bashrc or .zshrc like: alias kubectl="kubectl-lock kubectl --"
  4. From here, you can use kube-lock by calling kubectl-lock followed by the subcommand you wish to use (e.g., kubectl-lock lock)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL