This commit is contained in:
Jans Rautenbach 2025-12-01 21:42:19 +01:00 committed by GitHub
commit 0b07af1e50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -24,11 +24,13 @@ alias kaf='kubectl apply -f'
# Drop into an interactive terminal on a container
alias keti='kubectl exec -t -i'
# Manage configuration quickly to switch contexts between local, dev ad staging.
# Manage configuration quickly to switch contexts between local, dev and staging.
alias kcuc='kubectl config use-context'
alias kcsc='kubectl config set-context'
alias kcdc='kubectl config delete-context'
alias kccc='kubectl config current-context'
alias kcsetns="kcsc --current --namespace"
alias kcgetns="k config view --minify -o 'jsonpath={.contexts[0].context.namespace}'"
# List all contexts
alias kcgc='kubectl config get-contexts'