Add ArgoCD and k8s-pg to service health checks
- Check ArgoCD healthz endpoint - Check k8s-pg PostgreSQL via pg_isready - Verify all ArgoCD apps are synced Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
739f2f7da5
commit
92306c7953
1 changed files with 8 additions and 0 deletions
|
|
@ -83,6 +83,14 @@ check_service "minikube" "ssh indri 'minikube status --format={{.Host}} | grep -
|
|||
check_service "k8s-apiserver (indri)" "ssh indri 'kubectl get --raw /healthz'"
|
||||
check_service "k8s-apiserver (remote)" "kubectl --kubeconfig=$HOME/.kube/minikube-indri/config.yml --context=minikube-indri get --raw /healthz"
|
||||
|
||||
echo ""
|
||||
echo "Kubernetes workloads (via Tailscale):"
|
||||
check_http "ArgoCD" "https://argocd.tail8d86e.ts.net/healthz"
|
||||
# k8s PostgreSQL - check TCP connection (no auth needed for pg_isready)
|
||||
check_service "k8s-pg" "pg_isready -h k8s-pg.tail8d86e.ts.net -p 5432"
|
||||
# ArgoCD apps sync status
|
||||
check_service "ArgoCD apps synced" "kubectl --context=minikube-indri get applications -n argocd -o jsonpath='{.items[*].status.sync.status}' | grep -v OutOfSync"
|
||||
|
||||
echo ""
|
||||
if [ $FAILED -eq 0 ]; then
|
||||
echo -e "${GREEN}All services healthy!${NC}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue