Skip to content

Commit

Permalink
Merge pull request #34 from anupamsr/generate-aliases
Browse files Browse the repository at this point in the history
Added aliases for kubectl config
  • Loading branch information
patmessina authored Jul 7, 2022
2 parents 118235b + 0ab2e6d commit 0736652
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions aliases
Original file line number Diff line number Diff line change
Expand Up @@ -499,3 +499,12 @@ alias klf="kubectl logs -f"

# Exec alias.
alias keit="kubectl exec -it"

# Modify kubeconfig files.
alias kk="kubectl config"

# Describe one or many contexts.
alias kkc="kubectl config get-contexts"

# Set the current-context in a kubeconfig file.
alias kku="kubectl config use-context"
9 changes: 9 additions & 0 deletions aliases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,13 @@ additional:
- short: keit
cmd: "kubectl exec -it"
comment: "Exec alias."
- short: kk
cmd: "kubectl config"
comment: "Modify kubeconfig files."
- short: kkc
cmd: "kubectl config get-contexts"
comment: "Describe one or many contexts."
- short: kku
cmd: "kubectl config use-context"
comment: "Set the current-context in a kubeconfig file."

0 comments on commit 0736652

Please sign in to comment.