tianyun 10 maanden geleden
bovenliggende
commit
b3783be84a
1 gewijzigde bestanden met toevoegingen van 5 en 0 verwijderingen
  1. 5 0
      sh_config.sh

+ 5 - 0
sh_config.sh

@@ -58,6 +58,11 @@ function k8s-getlog() {
     podName=$(kubectl get pods -o wide | grep "${1}" | awk '{print $1}')
     podName=$(kubectl get pods -o wide | grep "${1}" | awk '{print $1}')
     kubectl logs --tail=300 -f "${podName}"
     kubectl logs --tail=300 -f "${podName}"
 }
 }
+function k8s-getlogbase() {
+    k8s-getnamespace
+    podName=$(kubectl get pods -o wide | grep "${1}" | awk '{print $1}')
+    kubectl logs -c base-jre --tail=300 -f "${podName}"
+}
 alias k8s-delpod='kubectl delete pod ${1} --force'
 alias k8s-delpod='kubectl delete pod ${1} --force'
 function k8s-inpod() {
 function k8s-inpod() {
     k8s-getnamespace
     k8s-getnamespace