This commit is contained in:
Julien Fabre 2024-08-12 00:44:41 -04:00 committed by GitHub
commit b8470879ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -16,6 +16,7 @@ plugins=(... kubectl)
| k | `kubectl` | The kubectl command |
| kca | `kubectl --all-namespaces` | The kubectl command targeting all namespaces |
| kaf | `kubectl apply -f` | Apply a YML file |
| kak | `kubectl apply -k` | Apply a kustomize file |
| keti | `kubectl exec -ti` | Drop into an interactive terminal on a container |
| | | **Manage configuration quickly to switch contexts between local, dev and staging** |
| kcuc | `kubectl config use-context` | Set the current-context in a kubeconfig file |

View file

@ -21,6 +21,9 @@ alias kca='_kca(){ kubectl "$@" --all-namespaces; unset -f _kca; }; _kca'
# Apply a YML file
alias kaf='kubectl apply -f'
# Apply a Kustomize file
alias kak='kubectl apply -k'
# Drop into an interactive terminal on a container
alias keti='kubectl exec -t -i'