This commit is contained in:
2026-07-31 23:40:49 -05:00
parent 77780af646
commit 920b9517f2
4 changed files with 184 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
#!/usr/bin/env bash
set -Eeuo pipefail
NAMESPACE="${NAMESPACE:-ecommerce}"
echo "== Aplicaciones =="
kubectl -n argocd get application ecommerce-app ecommerce-governance \
-o custom-columns='NAME:.metadata.name,SYNC:.status.sync.status,HEALTH:.status.health.status'
echo
echo "== Pods =="
kubectl -n "${NAMESPACE}" get pods -o wide
echo
echo "== PVC =="
kubectl -n "${NAMESPACE}" get pvc
echo
echo "== Servicios =="
kubectl -n "${NAMESPACE}" get svc \
postgres-svc redis-svc minio-svc medusa-svc
echo
echo "== Health interno =="
kubectl -n "${NAMESPACE}" run commerce-healthcheck \
--image=curlimages/curl:8.12.1 \
--restart=Never \
--rm -i \
--command -- \
curl -fsS --max-time 10 http://medusa-svc:9000/health
echo
echo
echo "== Health público =="
curl -fsS --max-time 15 https://commerce.cruzcloud.net/health
echo