apiVersion: jenkins.io/v1 kind: PipelineActivity metadata: annotations: lighthouse.jenkins-x.io/cloneURI: https://github.com/greencapitaltrade/deadpool.git lighthouse.jenkins-x.io/job: release pipeline.jenkins-x.io/traceID: 4b33ae47c9569375322c4372ffb64609 creationTimestamp: "2026-06-02T04:14:20Z" generation: 8 labels: branch: main build: "48" context: release created-by-lighthouse: "true" event-GUID: 853ff4a2-5e39-11f1-91c7-5e5251d9c97b lighthouse.jenkins-x.io/baseSHA: 6bf96dee771d30560174a98f490b8d4bffb0c5bc lighthouse.jenkins-x.io/branch: main lighthouse.jenkins-x.io/buildNum: "1780373659896" lighthouse.jenkins-x.io/context: release lighthouse.jenkins-x.io/id: pitaltrade-deadpool-main-release-877nr lighthouse.jenkins-x.io/job: release lighthouse.jenkins-x.io/lastCommitSHA: 6bf96dee771d30560174a98f490b8d4bffb0c5bc lighthouse.jenkins-x.io/refs.org: greencapitaltrade lighthouse.jenkins-x.io/refs.repo: deadpool lighthouse.jenkins-x.io/type: postsubmit owner: greencapitaltrade podName: pitaltrade-deadpool-main-release-2v85s-from-build-pack-pod provider: github repository: deadpool tekton.dev/pipeline: pitaltrade-deadpool-main-release-2v85s managedFields: - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:labels: f:branch: {} f:context: {} f:owner: {} f:provider: {} f:repository: {} f:spec: f:lastCommitMessage: {} f:lastCommitSHA: {} f:releaseNotesURL: {} f:version: {} manager: jx-changelog-0.10.18 operation: Update time: "2026-06-02T04:20:21Z" - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:annotations: .: {} f:lighthouse.jenkins-x.io/cloneURI: {} f:lighthouse.jenkins-x.io/job: {} f:pipeline.jenkins-x.io/traceID: {} f:labels: .: {} f:build: {} f:created-by-lighthouse: {} f:event-GUID: {} f:lighthouse.jenkins-x.io/baseSHA: {} f:lighthouse.jenkins-x.io/branch: {} f:lighthouse.jenkins-x.io/buildNum: {} f:lighthouse.jenkins-x.io/context: {} f:lighthouse.jenkins-x.io/id: {} f:lighthouse.jenkins-x.io/job: {} f:lighthouse.jenkins-x.io/lastCommitSHA: {} f:lighthouse.jenkins-x.io/refs.org: {} f:lighthouse.jenkins-x.io/refs.repo: {} f:lighthouse.jenkins-x.io/type: {} f:podName: {} f:tekton.dev/pipeline: {} f:spec: .: {} f:baseSHA: {} f:batchPipelineActivity: {} f:build: {} f:buildLogsUrl: {} f:completedTimestamp: {} f:context: {} f:gitBranch: {} f:gitOwner: {} f:gitRepository: {} f:gitUrl: {} f:message: {} f:pipeline: {} f:startedTimestamp: {} f:status: {} f:steps: {} manager: jx-build-controller operation: Update time: "2026-06-02T04:21:07Z" name: greencapitaltrade-deadpool-main-48 namespace: jx resourceVersion: "70384202" uid: 615c0a42-7222-461b-a972-458bd2c24115 spec: baseSHA: 6bf96dee771d30560174a98f490b8d4bffb0c5bc batchPipelineActivity: {} build: "48" buildLogsUrl: s3://logs-gct-prod-20260425045301534100000007/jenkins-x/logs/greencapitaltrade/deadpool/main/48.log completedTimestamp: "2026-06-02T04:20:57Z" context: release gitBranch: main gitOwner: greencapitaltrade gitRepository: deadpool gitUrl: https://github.com/greencapitaltrade/deadpool.git lastCommitMessage: | fix(iot-consumer): healthz returns 503 when consumer is unhealthy The TCP health server was hard-coded to respond `HTTP/1.1 200 OK` regardless of the computed `is_healthy` value. k8s probes only look at the status code, so a consumer stuck in an `AllBrokersDown` loop kept passing liveness/readiness and never got restarted — observed in jx-production on 2026-05-29 where one pod sat 28 min spamming `librdkafka: AllBrokersDown` while the probe stayed green. Two changes: 1. start_health_server: pick the HTTP status line based on `is_healthy`, so `unhealthy` now sends `HTTP/1.1 503 Service Unavailable`. JSON body shape is unchanged. 2. On successful consumer.recv() also `consumer_running.store(1)`. After >10 consecutive recv errors the loop flips `consumer_running` to 0, but the previous code never restored it on recovery — meaning even after the fix above, a pod that survived a transient broker outage would remain marked unhealthy forever. Now if brokers come back the probe can self-heal without a restart. Co-Authored-By: Claude Opus 4.7 lastCommitSHA: 234f67e18db5f6a81e6b59de025e2935c531c116 message: 'Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0' pipeline: greencapitaltrade/deadpool/main releaseNotesURL: https://github.com/greencapitaltrade/deadpool/releases/tag/v0.52.6 startedTimestamp: "2026-06-02T04:14:20Z" status: Succeeded steps: - kind: Stage stage: completedTimestamp: "2026-06-02T04:20:57Z" name: from build pack startedTimestamp: "2026-06-02T04:14:42Z" status: Succeeded steps: - completedTimestamp: "2026-06-02T04:14:43Z" name: Git Clone startedTimestamp: "2026-06-02T04:14:42Z" status: Succeeded - completedTimestamp: "2026-06-02T04:14:48Z" name: Next Version startedTimestamp: "2026-06-02T04:14:46Z" status: Succeeded - completedTimestamp: "2026-06-02T04:14:59Z" name: Jx Variables startedTimestamp: "2026-06-02T04:14:56Z" status: Succeeded - completedTimestamp: "2026-06-02T04:20:04Z" name: Build Cargo Install startedTimestamp: "2026-06-02T04:15:21Z" status: Succeeded - completedTimestamp: "2026-06-02T04:20:07Z" name: Check Registry startedTimestamp: "2026-06-02T04:20:04Z" status: Succeeded - completedTimestamp: "2026-06-02T04:20:09Z" name: Build Server Image startedTimestamp: "2026-06-02T04:20:08Z" status: Succeeded - completedTimestamp: "2026-06-02T04:20:11Z" name: Build Consumer Image startedTimestamp: "2026-06-02T04:20:10Z" status: Succeeded - completedTimestamp: "2026-06-02T04:20:12Z" name: Build Mqtt Image startedTimestamp: "2026-06-02T04:20:11Z" status: Succeeded - completedTimestamp: "2026-06-02T04:20:21Z" name: Promote Changelog startedTimestamp: "2026-06-02T04:20:13Z" status: Succeeded - completedTimestamp: "2026-06-02T04:20:24Z" name: Promote Helm Release startedTimestamp: "2026-06-02T04:20:21Z" status: Succeeded - completedTimestamp: "2026-06-02T04:20:57Z" name: Promote Jx Promote startedTimestamp: "2026-06-02T04:20:24Z" status: Succeeded - kind: Promote promote: environment: staging pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/4084 startedTimestamp: "2026-06-02T04:20:41Z" status: Succeeded startedTimestamp: "2026-06-02T04:20:41Z" status: Succeeded - kind: Promote promote: environment: production pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/4085 startedTimestamp: "2026-06-02T04:20:54Z" status: Succeeded startedTimestamp: "2026-06-02T04:20:54Z" status: Succeeded version: 0.52.6 status: {}