allen_check.sh
511 Bytes
# 等待服务重启后测试 API
kubectl run test-api-fixed -n ecommerce --image=curlimages/curl --rm -it -- sh -c "
echo 'Testing user-service health...'
curl -v http://user-service:8080/api/actuator/health
echo ''
echo 'Testing product-service health...'
curl -v http://product-service:8080/api/actuator/health
echo ''
echo 'Testing user-service API...'
curl -v http://user-service:8080/api/users/health
echo ''
echo 'Testing product-service API...'
curl -v http://product-service:8080/api/products/health
"