浏览代码

Merge remote-tracking branch 'origin/master'

tianyunperfect 4 月之前
父节点
当前提交
d6ad7131b7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      sh_config.sh

+ 1 - 0
sh_config.sh

@@ -120,6 +120,7 @@ function k8s-inpod() {
 	podName=$(kubectl get pods -o wide | grep "${1}" | awk '{print $1}')
 	podName=$(kubectl get pods -o wide | grep "${1}" | awk '{print $1}')
 	kubectl exec -it "${podName}" -- /bin/bash
 	kubectl exec -it "${podName}" -- /bin/bash
 }
 }
+alias k8s-getnodes='kubectl get nodes'
 
 
 alias k8s-topnodes='kubectl top node'
 alias k8s-topnodes='kubectl top node'