Skip to content

Script for lazy people (me) so they can work with kubectl without remembering too much

License

Notifications You must be signed in to change notification settings

TheJarX/my_kubectl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

My Kubectl

Created this script basically because had to remember some kubectl commands so I can work lol. Well, I'm lazy enough (and had no too much experience with kube) to code this basic script.

Instalation

Well you could add the script to the bin folder then make some stuff with the PATH. But, let's face it, that's too much trouble (if you're lazy as I am) so let's create an alias in your ~/.bashrc or ~/.zshrc or whatever you have.

alias kb="path/to/this/repo/kb" # kb is the name of the script, so keep it

Important: Give execution permissions to the script running chmod +x path/to/kb and that's it! ✌🏻

Supported commands

  • exec -it POD_ID -- bash -> bash POD_ID
  • get pods -> pods
  • get pods | grep Foo -> find_pod Foo

So, in roder to use the bash option you'll run kb bash POD_ID. This is equivalent to running kubectl exec -it POD_ID -- bash

Commands coming soon (I mean soon, when I need to use it several times):

  • use-context -> ctx (problably will need some config file, 🐻 w/ me)

About

Script for lazy people (me) so they can work with kubectl without remembering too much

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages