Skip to content

fix(eks): health-check ALB targets on each service's readiness path - #2496

Merged
Brad-Edwards merged 2 commits into
devfrom
fix/eks-alb-health-check-paths
Oct 5, 2026
Merged

Brad-Edwards merged 2 commits into
devfrom
fix/eks-alb-health-check-paths

Conversation

@Brad-Edwards

Copy link
Copy Markdown
Owner

Problem

Once ALB traffic can reach the pods (#2490), every aws-dev target reports Target.ResponseCodeMismatch. The AWS Load Balancer Controller defaults the health check to / expecting 200; the portal answers / with a redirect and guacamole-client with not-found. GKE already health-checks the portal on /health/ through its BackendConfig; the AWS renderer set no health path.

Change

scripts/bootstrap/aws_eks.py annotates the portal and guacamoleClient Services with alb.ingress.kubernetes.io/healthcheck-path set to their readiness-probe paths (/health/, /guacamole/), so the load balancer and Kubernetes judge a pod by the same endpoint. The chart already passes services.*.annotations through, and the values schema accepts them.

Verification

  • scripts/bootstrap/tests/test_aws_eks.py passes, including a new test that reads the readiness-probe paths from the chart's web-deployment.yaml and guacamole-client-deployment.yaml and requires the annotations to match.
  • helm template with the AWS dev values renders both annotations on the Services.
  • Live: target health on aws-dev after the next deploy.

With the network path fixed, every aws-dev ALB target reports
Target.ResponseCodeMismatch: the controller defaulted the health check to "/"
expecting 200, which the portal answers with a redirect and guacamole-client
with not-found. GKE already health-checks the portal on /health/ through its
BackendConfig.

The AWS renderer now annotates the portal and guacamole-client Services with
alb.ingress.kubernetes.io/healthcheck-path set to their readiness-probe paths
(/health/, /guacamole/), so the load balancer and Kubernetes judge a pod by
the same endpoint. A test pins the annotations to the chart's probe paths.
…ck-paths

# Conflicts:
#	scripts/bootstrap/aws_eks.py
@sonarqubecloud

sonarqubecloud Bot commented Oct 5, 2026

Copy link
Copy Markdown

@Brad-Edwards
Brad-Edwards merged commit c7c88c4 into dev Oct 5, 2026
80 checks passed
@Brad-Edwards
Brad-Edwards deleted the fix/eks-alb-health-check-paths branch October 5, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant