Find Slow Jaeger Services and Escalate the Latency Digest
Pull recent Jaeger traces, compute per service p50 and p99, and escalate services over the p99 budget through GitHub and Slack.
Monitor Kubernetes Ingress backends and prevent HTTP 502 routing blackholes with Kestra. Query endpoints, log GitHub issues, and alert SRE on Slack.
Kubernetes Ingress controllers route external HTTP/HTTPS traffic to internal microservices based on declarative hostname and path rules. However, when backing deployment pods fail readiness probes, crash repeatedly, or experience deployment rollout deadlocks, the backing Kubernetes Service has zero active endpoints, causing the Ingress controller to return immediate HTTP 502 or 503 errors to clients. This blueprint audits Kubernetes Ingress rules and verifies that backing Service endpoints have healthy, ready pods, logs an automated GitHub incident ticket, and alerts on-call SREs via Slack.
check_ingress_readiness_periodic (io.kestra.plugin.core.trigger.Schedule) initiates the audit every 10 minutes (shipped disabled for safe verification).probe_ingress_backends (io.kestra.plugin.scripts.python.Script) uses the official Kubernetes Python SDK to read Ingress routing rules and inspect corresponding Endpoints or EndpointSlices in the cluster.branch_on_unhealthy_backends (io.kestra.plugin.core.flow.If) evaluates whether any Ingress paths point to services with zero ready pod addresses (has_unhealthy == true):then: Automatically files a GitHub tracking issue via create_ingress_incident_issue (io.kestra.plugin.github.issues.Create) and alerts the Slack channel via alert_sre_slack (io.kestra.plugin.slack.notifications.SlackIncomingWebhook).else: Emits an informational log entry (log_ingress_healthy) confirming full backend readiness.log_audit_summary (io.kestra.plugin.core.log.Log) records the final health summary.errors block alerts Slack if Kubernetes API credentials or network connectivity fails.Kestra coordinates Kubernetes API interaction, multi-layer endpoint health validation, conditional incident escalation, and team alerting in a single declarative workflow. It manages cluster credentials securely, provides complete execution history, and eliminates the need for separate standalone monitoring daemons.
ingresses and endpoints.KUBECONFIG (or in-cluster ServiceAccount): Authentication credentials for Kubernetes API.GITHUB_TOKEN: GitHub token used to open incident issues.SLACK_WEBHOOK: Incoming Webhook URL for alerting.namespace (STRING, default production): Kubernetes namespace hosting the Ingress and services.ingress_name (STRING, default primary-app-ingress): Name of the Ingress resource to audit.github_repository (STRING, default my-org/kubernetes-cluster-operations): Target GitHub repository for logging incident issues.outputs.probe_ingress_backends.vars.total_backends: Total number of Ingress routing paths inspected.outputs.probe_ingress_backends.vars.unhealthy_count: Number of paths pointing to services without ready pods.outputs.probe_ingress_backends.vars.unhealthy_backends: List of unhealthy backend objects (path, service, ready_endpoints).GITHUB_TOKEN and SLACK_WEBHOOK in your Kestra namespace.namespace and ingress_name to match an existing Ingress resource.check_ingress_readiness_periodic trigger for continuous routing health monitoring.kubectl rollout restart deployment/<svc>) to attempt automatic recovery.io.kestra.plugin.core.flow.ForEach.