mirror of
https://github.com/jessebot/dot_files.git
synced 2025-10-01 01:48:43 +00:00
add ncsh alias for getting into nextcloud pod
This commit is contained in:
parent
c544429f4c
commit
354ebe6849
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,9 @@ alias kdn="kubectl describe nodes -l kubernetes.io/role=node"
|
|||
alias kgm="kubectl get nodes -l kubernetes.io/role=master"
|
||||
alias kgn="kubectl get nodes -l kubernetes.io/role=node"
|
||||
|
||||
# get shell access to nextcloud pod in nextcloud namespace
|
||||
alias ncsh="ke -n nextcloud $(kg pods -n nextcloud | grep -v postgres | grep -v metrics | tail -n 1 | awk '{print $1}') -- /bin/sh"
|
||||
|
||||
# switch to different k8s envs
|
||||
function kcs() {
|
||||
kubectl config use-context k8s-$1.$domain
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue