Skip to content

Commit

Permalink
adding k8s functions
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Oct 5, 2023
1 parent 9886d32 commit 09ceea8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions roles/bash/files/bash/k8s_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ function kgs() {
function kgn() {
kubectl get nodes -o wide $@
}
function kns() {
kubectl config set-context --current --namespace $1
}
function kgns() {
kubectl get namespaces
}
function kgnonly() {
kubectl get nodes | awk 'NR!=1 {print $1}'
}
function kd() {
kubectl describe $@
}
Expand All @@ -30,3 +39,6 @@ function kli() {
function kexec() {
kubectl exec -it -- $@
}
function kc() {
kubectl config use-context $1
}

0 comments on commit 09ceea8

Please sign in to comment.