Skip to content

Oh my zsh plugin to make kubectl commands a bit safer

License

Notifications You must be signed in to change notification settings

benjefferies/safe-kubectl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Safe kubectl

Plugin to add some safety when running kubectl. When there are kubernetes clusters you still run kubectl against but you want confidence through periodic reminders you can install this zsh plugin.

demo

Installing

  1. Clone the custom repo
    cd $HOME/.oh-my-zsh/custom/plugins
    git clone https://github.com/benjefferies/safe-kubectl
    
  2. Add the safe-kubectl plugin in your $HOME/.zshrc plugins e.g.
    plugins=(git kubectl safe-kubectl)
    
  3. Reload or source $HOME/.zshrc

Customising

  • KUBECTL_PATH - Set the path where kubectl is. Default /usr/local/bin/kubectl
  • KUBECTL_SAFE_CLUSTERS - Set clusters you want to exclude from safety checks. E.g. KUBECTL_SAFE_CLUSTERS="master dev integ"
  • KUBECTL_SAFE_TIME - Set the safe time you can run a kubectl command within without safety prompt. Default 300

About

Oh my zsh plugin to make kubectl commands a bit safer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages