{
  "id": "kubernetes/kubelet-http-healthz-fail",
  "signature": "http: HTTP probe failed with statuscode: 503",
  "signature_zh": "http: HTTP 探测失败，状态码：503",
  "regex": "HTTP probe failed with statuscode: 503",
  "domain": "kubernetes",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "The application's HTTP health endpoint returned a 503 status, usually because the app is not ready to serve traffic or is overloaded.",
  "root_cause_type": "generic",
  "root_cause_zh": "应用程序的 HTTP 健康检查端点返回 503 状态，通常是因为应用未准备好提供服务或过载。",
  "versions": [
    {
      "version": "kubernetes 1.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "kubernetes 1.23",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "kubernetes 1.27",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "kubernetes 1.28",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Increase the liveness probe threshold without fixing the app.",
      "why_fails": "This only masks the problem; the app remains unhealthy and may crash later.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Remove the readiness probe entirely.",
      "why_fails": "Removing the readiness probe can cause traffic to be routed to unhealthy pods, leading to user-facing errors.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check the application logs for errors during startup or dependency failures. For example, run `kubectl logs <pod-name> -c <container>` and look for stack traces.",
      "success_rate": 0.9,
      "how": "Check the application logs for errors during startup or dependency failures. For example, run `kubectl logs <pod-name> -c <container>` and look for stack traces.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Ensure the health endpoint returns 200 only when all dependencies (database, cache) are ready. Use a startup probe with a longer initial delay if the app takes time to initialize.",
      "success_rate": 0.8,
      "how": "Ensure the health endpoint returns 200 only when all dependencies (database, cache) are ready. Use a startup probe with a longer initial delay if the app takes time to initialize.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "检查应用程序日志中的启动错误或依赖项故障。例如，运行 `kubectl logs <pod-name> -c <container>` 并查找堆栈跟踪。",
    "确保健康检查端点仅在所有依赖项（数据库、缓存）就绪时返回 200。如果应用程序需要时间初始化，请使用具有较长初始延迟的启动探测。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/",
  "official_doc_section": null,
  "error_code": "K8S-HTTP-503",
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2024-01-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}