Advertisement
SyP-

pod.monitor.sh

Jun 23rd, 2021 (edited)
1,223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while true;do
  4.  
  5.     clear
  6.     echo "MONITOR DE PODS:"
  7.     microk8s kubectl get pods
  8.     echo ""
  9.     echo "MONITOR DE REPLICAS:"
  10.     microk8s kubectl get rs
  11.     echo ""
  12.     echo "MONITOR DE DEPLOYMENTS:"
  13.     microk8s kubectl get deployments
  14.  
  15.     echo ""
  16.     echo "(r)efresh (e)xit"
  17.     read -rsn1 ACTION
  18.  
  19.     case $ACTION in
  20.         r|R)
  21.             echo "refreshing..."   
  22.             ;;
  23.         e|E)
  24.             exit 0
  25.             ;;
  26.     esac
  27.  
  28.  
  29.  
  30. done
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement