From 3759b1b0ac3497226454f9ce1eb9465925999efc Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Fri, 17 Jan 2025 08:58:07 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20Am=C3=A9lioration=20des=20aliases=20pou?= =?UTF-8?q?r=20kubectl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aliases.d/kubectl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/aliases.d/kubectl b/aliases.d/kubectl index 141222f..82a301e 100644 --- a/aliases.d/kubectl +++ b/aliases.d/kubectl @@ -6,10 +6,16 @@ if (command -v kubectl &>/dev/null); then alias k="kubectl" alias kg="kubectl get" alias kd="kubectl describe" + alias ks="kubectl --namespace kube-system" + alias ksg="kubectl --namespace kube-system get" + alias ksd="kubectl --namespace kube-system describe" alias kga="kubectl get --all-namespaces" alias kuc="kubectl config unset current-context" alias kun="kubectl config set-context --current --namespace=" - alias kgworkers="kubectl get nodes --selector '!node-role.kubernetes.io/control-plane' --label-columns heat,topology.kubernetes.io/zone,topology.kubernetes.io/region --sort-by metadata.labels.heat" + alias kgnodes="kubectl get nodes --label-columns topology.kubernetes.io/region,topology.kubernetes.io/zone" + alias kgmasters="kubectl get nodes --selector 'node-role.kubernetes.io/control-plane' --label-columns topology.kubernetes.io/region,topology.kubernetes.io/zone" + alias kgworkers="kubectl get nodes --selector '!node-role.kubernetes.io/control-plane' --label-columns topology.kubernetes.io/region,topology.kubernetes.io/zone" + alias kgtaints="kubectl get nodes --output custom-columns=NAME:.metadata.name,TAINTS:.spec.taints" fi