This commit is contained in:
mr0xb 2026-05-28 10:00:17 -04:00
commit 490cfc4a3a
No known key found for this signature in database
5 changed files with 27 additions and 9 deletions

View file

@ -78,16 +78,12 @@ alias kgsec='kubectl get secret'
alias kgj='kubectl get job'
alias fqdn="kubectl get ingress -o json | jq '.items[] | .metadata.namespace + \": \" + .metadata.annotations.\"external-dns.alpha.kubernetes.io/hostname\"'"
alias fqdna="kubectl get ingress --all-namespaces -o json | jq '.items[] | .metadata.namespace + \": \" + .metadata.annotations.\"external-dns.alpha.kubernetes.io/hostname\"'"
#Kubernetes + Teleport
#===================================
# Kubernetes + Teleport
#===================================
alias tkl='tsh kube ls'
kutil () {
for host in $(kubectl get nodes --no-headers | cut -d' ' -f1)
do
echo "$host - $(kubectl get nodes -o jsonpath='{.metadata.labels.topology\.kubernetes\.io/zone}' $host)"
kubectl describe node "$host" | grep --color Allocated -A 5 | grep --color -ve Event -ve Allocated -ve percent -ve --
echo
done
}
#===================================
# USEFUL / CONVIENENCE
#===================================