一键导入
smoke-test
Run health checks against deployed services
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run health checks against deployed services
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Deploy services to the dev EKS namespace via ArgoCD (or kubectl for bootstrap)
Deploy services to the prod EKS namespace via ArgoCD (manual sync) with safety checks
View and troubleshoot service logs and pod status
Review Terraform code for security, best practices, and conventions
Roll back a failed deployment to the previous revision
Run Checkov security scan on Terraform modules
| name | smoke-test |
| description | Run health checks against deployed services |
| disable-model-invocation | true |
| argument-hint | [env] |
Run smoke tests against deployed services to verify they are healthy.
env — Target environment: dev or prod (default: dev)Set the namespace based on environment:
dev → petclinic-devprod → petclinic-prodCheck if scripts/smoke-test.sh exists. If so, run it:
bash scripts/smoke-test.sh {env}
If the script doesn't exist, run manual health checks:
a. Check all pods are running:
kubectl get pods -n petclinic-{env} --no-headers | grep -v Running
If any pods are not Running, report them.
b. For each service, port-forward and check health endpoint:
kubectl port-forward svc/{service} {local-port}:{service-port} -n petclinic-{env} &
PF_PID=$!
sleep 3
curl -sf http://localhost:{local-port}/actuator/health || echo "FAIL: {service}"
kill $PF_PID 2>/dev/null
c. Service health check ports:
| Service | Port | Health Endpoint |
|---|---|---|
| config-server | 8888 | /actuator/health |
| discovery-server | 8761 | /actuator/health |
| api-gateway | 8080 | /actuator/health |
| customers-service | 8081 | /actuator/health |
| visits-service | 8082 | /actuator/health |
| vets-service | 8083 | /actuator/health |
| genai-service | 8084 | /actuator/health |
| admin-server | 9090 | /actuator/health |
Present results:
## Smoke Test Results: {env}
| Service | Pod Status | Health Check | Notes |
|---------|-----------|-------------|-------|
| config-server | Running | PASS | |
| discovery-server | Running | PASS | |
| ... | ... | ... | ... |
Overall: {N}/8 services healthy
If any service fails, show: