he.sh
415 Bytes
#!/bin/bash
echo "=== 检查 health-check Pod 状态 ==="
echo "检查正在运行的 health-check Pod:"
kubectl describe pod health-check-7454cfd79b-kdrgw -n ecommerce
kubectl describe pod health-check-7454cfd79b-ntkvs -n ecommerce
echo ""
echo "检查 health-check Pod 日志:"
kubectl logs health-check-7454cfd79b-kdrgw -n ecommerce --tail=20
kubectl logs health-check-7454cfd79b-ntkvs -n ecommerce --tail=20