You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

7 lines
294 B

kubectl get pod -A |grep -v Running |grep -v NAMESPACE > /tmp/podsmal
if [ $? -eq 0 ]; then
# hay algo que no es Running, por lo tanto, está mal
df | grep sd >> /tmp/podsmal
sudo -u creylopez cat /tmp/podsmal | mail -s "Algunos pod están funcionando mal" "creylopez@yahoo.es"
fi