Skip to content

Add support for host aliases in services for Kubernetes executor

What does this MR do?

Adds supports for service aliases in the build, allowing accessing services by their hostname instead of on localhost only.

This MR is based on !1355 (closed).

Why was this MR needed?

The functionality was documented in the ci docs but didn't work in the k8s executor. So migrating jobs from the docker executor was breaking builds if they were to use hostnames.

Edit from @marcel.amirault: When this is merged, please merge gitlab!22530 (merged) as well, which depends on this MR.

Are there points in the code the reviewer needs to double check?

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Added tests for this feature/bug
  • master was rebased to get the latest pipeline updates

What are the relevant issue numbers?

Closes #2229 (closed)

Edited by Steve Xuereb

Merge request reports